Fixed negative bills

This commit is contained in:
ElPumpo
2018-02-22 16:57:43 +01:00
parent bfed8a8f06
commit d052d98042
6 changed files with 36 additions and 34 deletions
+6 -9
View File
@@ -63,13 +63,10 @@ end
-- Key controls
Citizen.CreateThread(function()
while true do
Wait(0)
if IsControlPressed(0, Keys["F7"]) and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') and (GetGameTimer() - GUI.Time) > 150 then
ShowBillsMenu()
GUI.Time = GetGameTimer()
end
end
Citizen.Wait(25)
if IsControlPressed(0, Keys["F7"]) and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') and (GetGameTimer() - GUI.Time) > 150 then
ShowBillsMenu()
GUI.Time = GetGameTimer()
end
end
end)