EMS problem,Please pay attention

now EMS can’t see the dead bodies…?

If someone died he press “E” to send notification to the ambulance clear?

they can know his place and every thing is okay but sometimes they can’t see him.!

I saw many servers using script which when someone type /stack the died body jump from the ground so the ambulance can see him OR every 60 seconds the died person make a little wake up and he come down on ground again * I WISH YOU CAN FIND THIS…

Moved to #server-development:essentialmode :mascot:

Can someone help??

why no one reply?

Hello???

need to bro

everyone is ignoring…

Hello guys… please stop ignoring me and help…

replace this function on your client main.lua on ambulance job in line 94 to this one

function OnPlayerDeath()
IsDead = true
TriggerServerEvent(‘esx_ambulancejob:setDeathStatus’, true)

StartDeathTimer()
StartDistressSignal()
DoScreenFadeOut(0)
Wait(5000)
DoScreenFadeIn(10000)
while IsDead do
    Wait(0)
    if IsEntityDead(GetPlayerPed(-1)) then

        Wait(5000)

        TriggerEvent('ragdoll')
        

        SetPedToRagdoll(GetPlayerPed(-1), 6000, 6000, 0, 0, 0, 0)     ---ragdoll


        SetPlayerInvincible(GetPlayerPed(-1), true)
        SetEntityHealth(GetPlayerPed(-1), 1)

        plyPos = GetEntityCoords(GetPlayerPed(-1))

        Wait(60000)
    end
end

end

RegisterNetEvent(‘ragdoll’)
AddEventHandler(‘ragdoll’, function()
local plyPos = GetEntityCoords(GetPlayerPed(-1))
NetworkResurrectLocalPlayer(plyPos, true, true, false)
end)

2 Likes

what’s this about?You don’t get what I want.

Sometime 90% of times EMS can see the dead bodies but so low chance they can’t see them

there is script when the guy who is died write /stack he jump from the ground so he change his place so the EMS can see him got me?

thank you btw ^ xo

Hello,

Will this script simply brings ragdoll animation ever X seconds which means resetting the players position (server sided)? Like NoPixel ragdoll thing when players die

1 Like

off course

Is this correct?
I comment out

–[[function OnPlayerDeath()
IsDead = true
ESX.UI.Menu.CloseAll()
TriggerServerEvent(‘esx_ambulancejob:setDeathStatus’, true)

StartDeathTimer()
StartDistressSignal()

StartScreenEffect(‘DeathFailOut’, 0, false)
end]]–

and replace it with

function OnPlayerDeath()
IsDead = true
TriggerServerEvent(‘esx_ambulancejob:setDeathStatus’, true)

StartDeathTimer()
StartDistressSignal()
DoScreenFadeOut(0)
Wait(5000)
DoScreenFadeIn(10000)
while IsDead do
Wait(0)
if IsEntityDead(GetPlayerPed(-1)) then

    Wait(5000)

    TriggerEvent('ragdoll')
    
    SetPedToRagdoll(GetPlayerPed(-1), 6000, 6000, 0, 0, 0, 0)     ---ragdoll

    SetPlayerInvincible(GetPlayerPed(-1), true)
    SetEntityHealth(GetPlayerPed(-1), 1)

    plyPos = GetEntityCoords(GetPlayerPed(-1))

    Wait(60000)
end

end
end

RegisterNetEvent(‘ragdoll’)
AddEventHandler(‘ragdoll’, function()
local plyPos = GetEntityCoords(GetPlayerPed(-1))
NetworkResurrectLocalPlayer(plyPos, true, true, false)
end)

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.