Use new trigger, fixed urls in readme

This commit is contained in:
ElPumpo
2018-04-14 14:25:00 +02:00
parent 12e1963e99
commit be480476b1
2 changed files with 7 additions and 14 deletions
+2 -7
View File
@@ -58,7 +58,6 @@ AddEventHandler('esx_ambulancejob:heal', function(_type)
ESX.ShowNotification(_U('healed'))
end)
function StartRespawnToHospitalMenuTimer()
ESX.SetTimeout(Config.MenuRespawnToHospitalDelay, function()
if IsDead then
@@ -621,12 +620,8 @@ AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
end)
AddEventHandler('baseevents:onPlayerDied', function(killerType, coords)
OnPlayerDeath()
end)
AddEventHandler('baseevents:onPlayerKilled', function(killerId, data)
OnPlayerDeath()
AddEventHandler('esx:onPlayerDeath', function()
OnPlayerDeath()
end)
RegisterNetEvent('esx_ambulancejob:revive')