Check IsControlJustReleased() every frame

This commit is contained in:
ElPumpo
2018-12-30 21:34:19 +01:00
parent a6d6b6deeb
commit 0d2f0ac849
+1 -1
View File
@@ -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()