[Release][ESX] patino_hospital - A simple NPC revive script

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! :slight_smile:

maybe bt-target instead of drawtext ?

1 Like

When will the update be?

1 Like

V1.0.1 RELEASE


- Now if there's not enough EMS you can use the NPC otherwise you can't

Please check Config!

- Fixed link to rprogress in the main topic



Download

The problem with bt-target is when you are dead, anyway i’ll try to se if i can make it work

1 Like

All ok np

2 Likes

Thank you for the suggestion! :slight_smile:

If you using esx legacy you should use GetExtendedPlayers instead of GetPlayers is way more optimized

1 Like

Thank you!!

V1.0.2 RELEASE


- Add the ESX Legacy ESX.GetExtendedPlayers for the optimization of the script

Please check Config!

- Now the text 3dText is "attached" to the ped so you don't need to put 2 coords in the config



Download

Hello :slight_smile: 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 :slight_smile:

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 :frowning: 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

Yeppers that worked :slight_smile: great mod and thank you for the help :slight_smile: have a great weekend and keep up the great work !!!
Thaxz :slight_smile:

1 Like