1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-05 16:04:53 +02:00
parent e876d31e05
commit 625f80361b
2 changed files with 6 additions and 54 deletions

View file

@ -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)