Hello! There is a cheat to resurrect sims, but you need a mod to be able to actually use the cheat. If you want to use this mod, you can download it! Since I can't send links yet, search up "Mod The Sims Resurrect Cheat by ferferga" and click the first link. :tongue:
To use the mod, you need to pull up the cheat bar, (ctrl + shift + c), and then type "resurrectsim firstname lastname" then it will bring them back.
Other than this, there is no way to resurrect a sim with a cheat. If you don't want to download a mod though, I would recommend just leaving their tombstone out, waiting for the ghost to visit, use the "testingcheats true" cheat, shift-clicking the ghost and adding them to your household, and, if you have the romantic garden pack, use the wishing well to wish for life. If you want an almost guaranteed life, you can shift-click the well and use a cheat for that. I hope this has helped and I'm sorry I'm late to the party if you've already solved this yourself. :sweat_smile: :blush: