Defibrillator
A simple script to have a usable item Defibrillator when there is no EMS connected.
Required script :
Order scripts start :
Please make sure to respect this start order in your server.cfg
ensure esx_ambulancejob
ensure defib
Install guide :
Clone the repository defib.
Upload the defib folder to your FTP.
You need to ensure that the item “medikit” (from esx_ambulancejob) is present in your database.
Rename the label of the item “medikit” in your database to your liking, in my case Label = Defibrillator.
Add the command “ensure defib” in your server.cfg.
In esx_ambulancejob/server/main.lua → line 14 please modify this way :
OLD :
NEW :
If you are too lazy to modify this file please use the one below
This file has to be placed in the following folder : esx_ambulancejob/server/main.lua
main.lua (9.3 KB)
(File updated the 18th of August 2020).
Thanks @JokreeTV for pointing this out !
Use guide :
Once connected, get a medikit item in your inventory and press the key “K ” near a dead person to execute the script.
If no EMS online the animation will start and will end up with reanimation of the dead person.
If an EMS is connected, you will get a notification saying that you need to call an EMS and no reanimation will be possible.
Conditions to use :
You need to have the item “medikit” in your inventory and a dead person near you. Then press “K ”
Download Link :
11 Likes
Yozza
November 15, 2019, 11:01am
2
I made this exact thing my self awesome release btw so many people are looking for something like this.
1 Like
Not that hard to script and very helpfull for RP servers
Thanks mate
Nice Release. One thing that i dont like is that it is in french. But still ill try translating it and i will use this for sure.
1 Like
Hey buddy, sorry I was a bit lazy to re translate in english. There is not a lot to re translate tho
Jelias
November 15, 2019, 2:25pm
7
For some reason it wont let me revive anyone. It does the animation and nothing happens. Any resolutions?
1 Like
Hi Jelias,
Can you check when you do the action if you have any error in your F8 console or directly in your server console ?
Also, do you have that item in your DB : medikit ? that one normally comes from esx_ambulancejob
Also make sure your script “esx_ambulancejob” starts in your server.cfg before “defib”
LePlay
November 15, 2019, 3:26pm
10
The problem is that it doesnt find a near player.
Hello that’s not all right If you want to bring someone up it’s not in the console he is Revivet me but Nix Passier both the dead and I get no life
Greetings JokreeTV
1 Like
Jelias
November 15, 2019, 3:38pm
12
I do have it in the DB and it gives no errors. i have started ambulancejob before defib, still nothing. The only message i get is in the host console: esx_ambulancejob: steam:HEX attempted to revive!
nice realease @arnaud_dunka , can you make it standalone?
is yours standalone or vrp 0.5 @Yozza ?
You need to have item in your inventory and a dead person near you. Once you have those conditions you can press “K” for revive
That does not work Do you want video or must this still be written 1000x?
A test I just did right now @JokreeTV . The user in front of me is playing on my live server, he has no superadmin rights or nothing and he is not EMS.
Maybe there is something I forgot to mention, gonna check tho.
Unfortunately, we do not use it. We do not use it.
Here is a video
My Upload Server
@LamboGR @Jelias Please see my update in the Install Guide regarding the server.lua of ambulancejob. This should fix the issue of nothing happening.
Please keep me informed and sorry to have forgot this.
With this little patch it is now working on @JokreeTV server