ESX Ambulancejob can't revive

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)

2 Likes

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