forked from Simnation/Main
ed
This commit is contained in:
parent
e876d31e05
commit
625f80361b
2 changed files with 6 additions and 54 deletions
|
@ -162,16 +162,9 @@ lib.callback.register('billing:server:handleBillResponse', function(source, data
|
|||
-- Notify the player
|
||||
TriggerClientEvent('QBCore:Notify', src, 'Du hast die Rechnung abgelehnt', 'info')
|
||||
|
||||
return true
|
||||
elseif data.action == 'later' then
|
||||
-- Simply close the prompt without any action
|
||||
-- The bill will remain in the system as unpaid
|
||||
|
||||
-- Notify the player
|
||||
TriggerClientEvent('QBCore:Notify', src, 'Die Rechnung wurde für später gespeichert', 'info')
|
||||
|
||||
return true
|
||||
end
|
||||
-- "later" action removed
|
||||
|
||||
return false
|
||||
end)
|
||||
|
@ -189,7 +182,6 @@ function PayBillFromSharedAccount(source, billId, accountId)
|
|||
|
||||
local bill = billResult[1]
|
||||
local amount = tonumber(bill.amount)
|
||||
|
||||
-- Get account details
|
||||
local accountResult = MySQL.query.await('SELECT * FROM ps_banking_accounts WHERE id = ?', {accountId})
|
||||
if not accountResult or #accountResult == 0 then return false end
|
||||
|
@ -466,3 +458,5 @@ QBCore.Commands.Add('bills', 'Zeige deine unbezahlten Rechnungen an', {}, false,
|
|||
-- This will trigger the client to open the bills menu
|
||||
TriggerClientEvent('billing:client:openBillsMenu', source)
|
||||
end)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue