mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 07:16:03 +01:00
Improved support of gks-phone
This commit is contained in:
@@ -111,13 +111,16 @@ RegisterServerEvent("jim-payments:server:Charge", function(citizen, price, billt
|
|||||||
{billed.PlayerData.citizenid, amount, biller.PlayerData.job.name, biller.PlayerData.charinfo.firstname, biller.PlayerData.citizenid})
|
{billed.PlayerData.citizenid, amount, biller.PlayerData.job.name, biller.PlayerData.charinfo.firstname, biller.PlayerData.citizenid})
|
||||||
TriggerClientEvent('qb-phone:RefreshPhone', billed.PlayerData.source)
|
TriggerClientEvent('qb-phone:RefreshPhone', billed.PlayerData.source)
|
||||||
elseif Config.PhoneType == "gks" then
|
elseif Config.PhoneType == "gks" then
|
||||||
MySQL.Async.execute('INSERT INTO gksphone_invoices (citizenid, amount, society, sender, sendercitizenid) VALUES (@citizenid, @amount, @society, @sender, @sendercitizenid)', {
|
MySQL.Async.execute('INSERT INTO gksphone_invoices (citizenid, amount, society, sender, sendercitizenid, label) VALUES (@citizenid, @amount, @society, @sender, @sendercitizenid, @label)', {
|
||||||
['@citizenid'] = billed.PlayerData.citizenid,
|
['@citizenid'] = billed.PlayerData.citizenid,
|
||||||
['@amount'] = amount,
|
['@amount'] = amount,
|
||||||
['@society'] = biller.PlayerData.job.name,
|
['@society'] = biller.PlayerData.job.name,
|
||||||
['@sender'] = biller.PlayerData.charinfo.firstname,
|
['@sender'] = biller.PlayerData.charinfo.firstname,
|
||||||
['@sendercitizenid'] = biller.PlayerData.citizenid
|
['@sendercitizenid'] = biller.PlayerData.citizenid,
|
||||||
|
['@label'] = biller.PlayerData.job.label,
|
||||||
})
|
})
|
||||||
|
TriggerClientEvent('gksphone:notifi', src, {title = 'Billing', message = 'Invoice Successfully Sent', img= '/html/static/img/icons/logo.png' })
|
||||||
|
TriggerClientEvent('gksphone:notifi', billed.PlayerData.source, {title = 'Billing', message = 'New Invoice Recieved', img= '/html/static/img/icons/logo.png' })
|
||||||
end
|
end
|
||||||
TriggerClientEvent('QBCore:Notify', src, 'Invoice Successfully Sent', 'success')
|
TriggerClientEvent('QBCore:Notify', src, 'Invoice Successfully Sent', 'success')
|
||||||
TriggerClientEvent('QBCore:Notify', billed.PlayerData.source, 'New Invoice Received')
|
TriggerClientEvent('QBCore:Notify', billed.PlayerData.source, 'New Invoice Received')
|
||||||
|
|||||||
Reference in New Issue
Block a user