EMS can not revive players from F6 menu for somereason. Anythng that I should have enabled or what?
You ever figure this out?
The issue why this doesnāt work is that when a player dies, in the DB itās not setting their āisDeadā status to 1.
From esx_ambulancejob\client.lua
function OnPlayerDeath()
IsDead = true
TriggerServerEvent(āesx_ambulancejob:setDeathStatusā, 1)
if Config.ShowDeathTimer == true then
ShowDeathTimer()
end
In the EMS menu, the revive command simple just changes the 1 to a 0 ie reviving the player by setting their life status from dead to alive.
RegisterNetEvent(āesx_ambulancejob:reviveā)
AddEventHandler(āesx_ambulancejob:reviveā, function()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
TriggerServerEvent(āesx_ambulancejob:setDeathStatusā, 0)
Hello can you help me
in the DB isDead status ā1ā but still EMS canāt revive
anyone in here already get a solve?
Necesito ayudaaa