mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 00:03:21 +00:00
Check IsControlJustReleased() every frame
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user