For ESX 1.1 and 1.2 insert this in <es_extended> > <server> > <functions.lua> under ESX.GetPlayers
functionESX.GetExtendedPlayers(key,val)local xPlayers = {}for k, v inpairs(ESX.Players) doif key thenif (key =='job' and v.job.name == val) or v[key] == val then xPlayers[#xPlayers +1] = vendelse xPlayers[#xPlayers +1] = vendendreturn xPlayersend
At least go in <esx_ambulancejob> > <client.lua> > <main.lua> and put this at the bottom!
RegisterNetEvent('esx_ambulancejob_Revive_ffa')AddEventHandler('esx_ambulancejob_Revive_ffa', function(x,y,z)local playerPed =PlayerPedId();TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)TriggerServerEvent("esx_ambulancejob:setstabile",false)local formattedCoordss = {x = x, y = y, z = z }RespawnPed(playerPed, formattedCoordss, 120.0)StopScreenEffect('DeathFailOut')Wait(3000)end)