Implemented paying with bank balance, cleanup

This commit is contained in:
ElPumpo
2018-07-08 15:18:47 +02:00
parent 2846c084db
commit 922d0c5fec
9 changed files with 104 additions and 58 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ function ShowBillsMenu()
'default', GetCurrentResourceName(), 'billing',
{
title = _U('invoices'),
align = 'bottom-right',
align = 'bottom-right',
elements = elements
},
function(data, menu)
@@ -63,7 +63,7 @@ end
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if IsControlJustReleased(0, Keys["F7"]) and not isDead and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') then
if IsControlJustReleased(0, Keys['F7']) and not isDead and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'billing') then
ShowBillsMenu()
end
end