mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 18:58:54 +00:00
Check IsControlJustReleased() every frame
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ end)
|
||||
-- Menu Controls
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
Citizen.Wait(10)
|
||||
Citizen.Wait(0)
|
||||
|
||||
if IsControlJustReleased(0, Keys['E']) and isInMarker and not menuIsShowed then
|
||||
ESX.UI.Menu.CloseAll()
|
||||
|
||||
Reference in New Issue
Block a user