I searched on here, found one, added it in but it refuses to work with the esx police base job so either i’ve put it in the wrong place or it just doesn’t work. Any one able to help with a new revive script to add to esx police job menu with screenshots?
This is where I found it
I added the ability to revive people from the police menu.
Requires esx_ambulance job obviously
Add this to your police menu in the client main.lua
{label = _U('revive player'), value = 'revive'},
Remember if it is at the end of this list you need to remove the comma.
Then add this
if data2.current.value == 'revive' then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
local closestPlayerPed = GetPlayerPed(closestPlayer)
…
try this one i create
client/main.lua
main.lua (64.2 KB) litte error
server/main.lua
main.lua (16.4 KB)
and then you only just add the locales if you get any error try to give me the screenshot
Okay, what locales do I add for it to work? I’m literally a beginner at this stuff and learning as I go.
your language , just add it
This is what the error says
After line 655 where it says
elseif action == 'identity_card' then
you need to add this part below
OpenIdentityCardMenu(closestPlayer)
or else identity card won’t work
[‘revive player’] = ‘Revive Person’,