patino_hospital
Hey! this is mi first public release, feel free to make suggestions and recomendations :slightly_smiling_face:
Please read all the topic so you can see the download button.
**THIS SCRIPT IS FREE, PLEASE DON’T REMOVE THE WATERMARK**
Description
This is a simple NPC that revives you if you are dead, this can be used in Roleplay servers when there are not EMS in the server or are busy. I search for something similar in the forum but i didn't find it.
I'm working in the optimization of the script (which is great) but i'm trying to reduce that CPU MSEC.
New Features
- Only works if there is no EMS (configurable)
- Optimization
- Great RP additions
- Easy setup
- Full configurable
- Easy way to add locales
Screenshots & Optimization
- Using
- Not using
Requeriments
es_extended (Legacy & V1 Final)
rpgrogress (optional)
Download
Download the Latest Version in my
GitHub
14 Likes
you can make if ems online doctor dont work?
Like, if there’s 0 EMS in the server?
I’ll post an update for that, thank you!!!
yes if 0 ems, work, if 1 not work
I guess someone has to take you in front of the doctor to click, right?
1 Like
Sure, i’ll post an update for that, thank you!
Just like that!
maybe bt-target instead of drawtext ?
1 Like
The problem with bt-target is when you are dead, anyway i’ll try to se if i can make it work
1 Like
Thank you for the suggestion!
If you using esx legacy you should use GetExtendedPlayers instead of GetPlayers is way more optimized
1 Like
Hello Could I add a 2’nd location in "Config.PedLocations " by adding a comma and then adding coords for Sandy ER ?
Thank you
Yes, you can add multiple locations just like this
Config.PedLocations = {
{x = 319.20547485352, y = -588.57763671875, z = 43.284042358398, h = 149.54759216309},
{x = 119.20547485352, y = -288.57763671875, z = 43.284042358398, h = 249.54759216309}
}
2 Likes
thank you great mod !!! keep up the great work !!!
1 Like
looks like my esx does not like it error:
[ c-scripting-core] Creating script environments for patino_hospital
[ c-scripting-core] Failed to load script @es_extended/imports.lua.
[script:patino_hospit] Error loading script server/main.lua in resource patino_hospital: @patino_hospital/server/main.lua:7: attempt to index a nil value (global ‘ESX’)
[script:patino_hospit] stack traceback:
[script:patino_hospit] @patino_hospital/server/main.lua:7: in main chunk
Make sure you have Config.UsingESXLegacy = false
, then go to fxmanifest.lua and comment the '@es_extended/imports.lua'
line
1 Like