Anyone help me how to force disable screen kill effect. thankyou
Depends what framework you are using. You people really need to provide more information to make this easierā¦
For ESX:
Go to esx_ambulancejob
and search for āDeathFailOutā.
It will appear for things like;
StartScreenEffect('DeathFailOut', 0, false)
And;
StopScreenEffect('DeathFailOut')
Thatās what is doing it. Just remove or comment out those lines and maybe others like screen fading, etc. Just edit to your own needs. But StartScreenEffect('DeathFailOut', 0, false)
is what is causing that death screen effect.
its a little late now but for the newer version its in the esx_ambulancejob/client/main.lua. i removed this whole part:
function OnPlayerDeath()
isDead = true
ESX.CloseContext()
ClearTimecycleModifier()
SetTimecycleModifier(āREDMIST_blendā)
SetTimecycleModifierStrength(0.7)
SetExtraTimecycleModifier(āfp_vig_redā)
SetExtraTimecycleModifierStrength(1.0)
SetPedMotionBlur(PlayerPedId(), true)
TriggerServerEvent(āesx_ambulancejob:setDeathStatusā, true)
StartDeathTimer()
StartDeathCam()
StartDistressSignal()
end