mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:01:35 +00:00
Check IsControlJustReleased() every frame
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ end
|
||||
-- Key controls
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
Citizen.Wait(0)
|
||||
if IsControlJustReleased(0, Keys['F7']) and not isDead and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') then
|
||||
ShowBillsMenu()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user