forked from Simnation/Main
ed
This commit is contained in:
parent
02dd8bf93c
commit
cd36cf6694
6 changed files with 451 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue