Hey guys,

with this release it is possible to let people do firstaid.

Features:
– You need a license with the name ‘firstaidcourse’ to do firstaid on other players
– there is a item called ‘firstaidpass’ if you are using it it will give you the license
– if a player is dead you can add a configurable amount of time to the bleedouttimer
– you can do firstaid again after a configurable amount of time

Installation:
– you need esx_licenses installed
– download the ressource
– upload it
– use firstaid.sql to add the ‘firstaidpass’ as item in your database
– add start esx_firstaid to your server.cfg
– open esx_ambulancejob/client/main.lua and add:

RegisterNetEvent('esx_ambulancejob:receiveReset')
AddEventHandler('esx_ambulancejob:receiveReset', function(state, addTime)
	if state then
		bleedoutTimer = bleedoutTimer + addTime
	end
end)

Here is ONE screenshot ^^

YOU CAN NOT REVIVE SOMEONE WITH THIS SCRIPT

I like feedback :slight_smile:

15 Likes

Seems good, does it let you semi-revive people or what does it actually do?

There is a countdown for respawn…
You can “reset” this countdown if you doing firstaid

Idea and legal, but would it only allow him to reanimate if he does not have ambulance online on the server?

Failed to load script client/job.lua.

This script doesnt revive the other player. J
It just keeps him alive in deathscreen.

Thx. You have to remove line

“client / job.lua”
In the __resource.lua

where do i find the license
thanks mate

Very good idea, I’ll give it a try! :slight_smile:
:hamburger: :mascot:

you have to install esx_licenses

i have it installed

read my first post…
you have to use the item firstaidpass

you have to put it in your database.
then you can use it ingame and you will get the license automaticly.
its for RP-server with medic.
medic should do a firstaidcourse and then they will give you the licensepass

i have it in my data base

then you have to sell it in a shop are give it to the players in another way.

how do i have like you said ems can give it to them once they have done a course

give the ITEM to the ems. and they can give it to other players.

Fr:

Salut les gars, je me permets de vous partage ici, une léger modification du script

Il ajoute un une aide via un message
Ce dernier ne s’affiche que si le joueur est mort (Vie = 0 )
Distance = 1.3

EN:

Hi guys, let me share you here, a slight modification of the script

It add a help text in a message
and it is written only if te player is dead ( Life = 0 )

Distance = 1.3
main.lua (2.9 KB)

  • La traduction est francais :

    [‘no_license’] = ‘Tu n’as pas de~r~lience~s~’,
    [‘first_inprogress’] = ‘~g~Soins en cours…~s~’,
    [‘already_firstaid’] = ‘tu es deja ~y~en train~s~ de pratiquer’,
    [‘done_firstaid’] = ‘Tu as pratiqué des soins. Maintenant il faut espérer…’,
    Les traductions sont approximative

  • Translate in English
    [‘no_license’] = ‘You don’t have ~r~license~s~’,
    [‘first_inprogress’] = ‘~g~Care in progress…~s~’,
    [‘already_firstaid’] = ‘you are already ~y~help~s~ him’,
    [‘done_firstaid’] = ‘You practiced care. Now we have to hope…’,
    Translations are approximate

Passe une bonne journée :wink:

Have a nice day guys :wink:

1 Like

you can open a pullrequest on github if you want

but you can remove the healthcheck part
because of IsPedDeadOrDying() it allready checks if the target is dead

Fantastic! I’ll give him a try!

1 Like

the script is still not reviving ?