Latest ESX code

This commit is contained in:
ElPumpo
2020-04-14 16:46:56 +02:00
parent 6a0e69e9a1
commit 1049049579
6 changed files with 7 additions and 12 deletions
+2 -7
View File
@@ -122,13 +122,8 @@ function OpenShopMenu(accessory)
end, restrict)
end
AddEventHandler('playerSpawned', function()
isDead = false
end)
AddEventHandler('esx:onPlayerDeath', function()
isDead = true
end)
AddEventHandler('esx:onPlayerSpawn', function() isDead = false end)
AddEventHandler('esx:onPlayerDeath', function() isDead = true end)
AddEventHandler('esx_accessories:hasEnteredMarker', function(zone)
CurrentAction = 'shop_menu'