Hello there, today I’m bringing you a modification I’ve had for a while but never released since it was pretty simple and really did not require any work on my side. I have used @albo1125 's code on his Jailer Script, with his permission of course. I know this is not the hardest thing to do, but one of my members suggested this and I realized how helpful it could be for servers that usually have no to low EMS presence. If there are any problems with please inform me and I will be ready to help . Proof for the permission from @albo1125 will be posted as a screenshot below.
NOTE : \\\ I TAKE NO CREDITS FOR CODING, ALL CODING WAS DONE BY @albo1125 \\\
What does this script do?
This script works with in-game chat commands. The player will simply use a command on a player and it would teleport him to Pillbox Hospital (Could be changed through serverHospital.lua). If the patient leaves the hospital without finishing his time it will teleport him back and add more time due to an injury during the escape attempt.
Commands to type in chat (T):
/hospitalme SECS - Hospitalize yourself, if SECS not given defaults to the default hospital time.
/unhospital ems PLAYERID - Hospitalize the player with PLAYERID (hold up arrow ingame to see) if EMS matches specified hospital password.
/hospital ems PLAYERID SECS - Hospitalizes the player with PLAYERID (hold up arrow ingame to see) if EMS matches specified hospital password. If SECS not given, defaults to the default hospital time.
Download it !!
Download using Github : GitHub - K3Vx/RG-Hospital
RECOMMENDED
I recommend using the following resource with RG_Hospital, if you decide to keep on using Pill Box Hospital.
**Permission from @albo1125 to use his code**
Finally,
I have future scripts that I will be releasing to the public soon, with my code this time. I’m kind of busy with University and all and I decided to get back to FiveM not a long time ago. Also please do not spam this chat with “This is very simple, you just changed Coords and commands”. As I said I’m aware of it and I take no credit, I just felt it would be nice to post it on the forums for everyone since I have not seen that before. And if it has been posted before, please inform me and I will more than gladly remove this.
clientHospital.lua (1.7 KB)
README.txt (817 Bytes)
serverHospital.lua (2.3 KB)
__resource.lua (136 Bytes)