Skip to content

Commit

Permalink
add "esx_ambulancejob:RespawnAtHospital" event
Browse files Browse the repository at this point in the history
  • Loading branch information
yiruzu authored Nov 13, 2024
1 parent 60196ab commit c8619eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ function RemoveItemsAfterRPDeath()
end)
end

RegisterNetEvent("esx_ambulancejob:RespawnAtHospital", RemoveItemsAfterRPDeath)

function RespawnPed(ped, coords, heading)
SetEntityCoordsNoOffset(ped, coords.x, coords.y, coords.z, false, false, false)
NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, heading, true, false)
Expand Down Expand Up @@ -379,4 +381,4 @@ end)
-- Load unloaded IPLs
if Config.LoadIpl then
RequestIpl('Coroner_Int_on') -- Morgue
end
end

0 comments on commit c8619eb

Please sign in to comment.