Improvements

This commit is contained in:
ElPumpo
2018-07-06 22:33:35 +02:00
parent 9fee9d2c31
commit 7bbd1258b3
4 changed files with 50 additions and 80 deletions
+2 -5
View File
@@ -11,9 +11,7 @@ local Keys = {
}
ESX = nil
local GUI = {}
local isDead = false
GUI.Time = 0
Citizen.CreateThread(function()
while ESX == nil do
@@ -64,10 +62,9 @@ end
-- Key controls
Citizen.CreateThread(function()
while true do
Citizen.Wait(25)
if IsControlPressed(0, Keys["F7"]) and not isDead and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') and (GetGameTimer() - GUI.Time) > 150 then
Citizen.Wait(10)
if IsControlJustReleased(0, Keys["F7"]) and not isDead and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') then
ShowBillsMenu()
GUI.Time = GetGameTimer()
end
end
end)