From 13d83a066a24b8ce1966abc0aa606118dc14c0b7 Mon Sep 17 00:00:00 2001 From: jimathy Date: Tue, 12 Apr 2022 21:10:48 +0100 Subject: [PATCH] Fix job label on payment popup --- server.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.lua b/server.lua index e9035e1..5fc2ca5 100644 --- a/server.lua +++ b/server.lua @@ -91,10 +91,10 @@ RegisterServerEvent("jim-payments:server:Charge", function(citizen, price, billt return end 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 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 MySQL.Async.insert( 'INSERT INTO phone_invoices (citizenid, amount, society, sender, sendercitizenid) VALUES (?, ?, ?, ?, ?)', @@ -131,4 +131,4 @@ QBCore.Functions.CreateCallback('jim-payments:MakePlayerList', function(source, onlineList[#onlineList+1] = { value = tonumber(v), text = "["..v.."] - "..P.PlayerData.charinfo.firstname..' '..P.PlayerData.charinfo.lastname } end cb(onlineList) -end) \ No newline at end of file +end)