mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 15:26:03 +01:00
Fix job label on payment popup
This commit is contained in:
@@ -91,10 +91,10 @@ RegisterServerEvent("jim-payments:server:Charge", function(citizen, price, billt
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if billtype == "cash" then
|
if billtype == "cash" then
|
||||||
TriggerClientEvent("jim-payments:client:PayPopup", billed.PlayerData.source, amount, src, billtype, img)
|
TriggerClientEvent("jim-payments:client:PayPopup", billed.PlayerData.source, amount, src, billtype, img, biller.PlayerData.job.label)
|
||||||
elseif billtype == "bank" then
|
elseif billtype == "bank" then
|
||||||
if Config.PhoneBank == false then
|
if Config.PhoneBank == false then
|
||||||
TriggerClientEvent("jim-payments:client:PayPopup", billed.PlayerData.source, amount, src, billtype, img)
|
TriggerClientEvent("jim-payments:client:PayPopup", billed.PlayerData.source, amount, src, billtype, img, biller.PlayerData.job.label)
|
||||||
else
|
else
|
||||||
MySQL.Async.insert(
|
MySQL.Async.insert(
|
||||||
'INSERT INTO phone_invoices (citizenid, amount, society, sender, sendercitizenid) VALUES (?, ?, ?, ?, ?)',
|
'INSERT INTO phone_invoices (citizenid, amount, society, sender, sendercitizenid) VALUES (?, ?, ?, ?, ?)',
|
||||||
|
|||||||
Reference in New Issue
Block a user