Check IsControlJustReleased() every frame

This commit is contained in:
ElPumpo
2018-12-30 21:32:06 +01:00
parent e30207e467
commit bdc9e88535
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -998,7 +998,7 @@ end)
-- Key Controls
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
Citizen.Wait(0)
if CurrentAction ~= nil then
ESX.ShowHelpNotification(CurrentActionMsg)
@@ -1072,7 +1072,7 @@ Citizen.CreateThread(function()
end
end)
AddEventHandler('esx:onPlayerDeath', function()
AddEventHandler('esx:onPlayerDeath', function(data)
IsDead = true
end)