1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-05 11:11:48 +02:00
parent 02dd8bf93c
commit cd36cf6694
6 changed files with 451 additions and 8 deletions

View file

@ -432,12 +432,18 @@ lib.callback.register("ps-banking:server:payBill", function(source, billId)
xPlayer.Functions.RemoveMoney("bank", tonumber(amount))
end
MySQL.query.await('DELETE FROM ps_banking_bills WHERE id = ?', { billId })
-- Add this line to trigger our custom event
TriggerEvent('ps-banking:server:billPaid', billId)
return true
else
return false
end
end)
function createBill(data)
local identifier = data.identifier
local description = data.description