A few months ago I released three scripts and then removed them as I was using them for a private community. I am no longer a part of that community and have decided that the entire FiveM community deserves to benefit from these if they’d like too.
Hospital Script: Similar to the /jail command but will send players to the morgue and prevent them from leaving for X seconds (capped at 600 seconds). Can specify a hospital to teleport player back to or they can teleport outside the morgue.
Source Code: https://github.com/TheStonedTurtle/FiveM-Hospital
Demo Video: https://www.youtube.com/watch?v=M6IHRsHVaZM&feature=youtu.be
Requires OPEN INTERIORS to be installed for each user. https://lambda.menu
I Haven’t personally tested this but I have been told this is a server-sided solution for OPEN INTERIORS: [RELEASE] Fix holes in the map
RPDeath Script: Prevent automatic respawn, player will stay dead until they are revived or respawn via a chat command. There is a command to toggle this per person so they will automatically respawn at one of the 5 hospital locations. Prevents players from respawning themselves for 300seconds, can be changed at the top of
Please do not redistribute these files without my permission unless it has been modified. If the code has been modified please give me some credit unless you feel you’ve changed so much I don’t deserve any.
If you find any huge issues with these scripts let me know and I’ll attempt to fix them.
Please ensure any issues are issues caused soley by RPDeath and not another resource conflicting with mine. Most likely issue is another resource turning the
setAutoSpawn() back on.