1
0
Fork 0
forked from Simnation/Main
Main/resources/[test]/cloud-deathscreen/bridge/client/esx.lua

19 lines
566 B
Lua
Raw Permalink Normal View History

2025-06-07 08:51:21 +02:00
local Config = require("shared.sh_config")
if Config.Framework ~= "esx" then return end
function CallEmergency()
TriggerServerEvent("esx_ambulancejob:onPlayerDistress")
end
function RevivePed()
TriggerEvent("esx_ambulancejob:RespawnAtHospital") --! Don't forget to check the documentation to ensure this works properly.
end
AddEventHandler("esx:onPlayerDeath", function()
TriggerEvent("cloud-deathscreen:client:OnPlayerDeath")
end)
AddEventHandler("esx:onPlayerSpawn", function()
TriggerEvent("cloud-deathscreen:client:OnPlayerSpawn")
end)