Basically, I want to make a script in C# that makes the player teleport to the nearest hospital interior (laying down in the back room with the single bed using the save game sleep anim) upon death.
The thing is, I'm not too keen on the functions to make such an event happen upon death and the only similar mod I've seen is the prison mod, which is an asi mod.
I'm also trying to figure out how to make new safehouses (more specifically, the Majestic Hotel room) but that's going to take hours of searching through gta's files to find out just what makes a safehouse work so any help there would be much appreciated.
I'm pretty new at this so I'm still in the process of learning what functions work and which do not. Perhaps I should study C# more before trying to take on something such as this.