mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-16 22:06:02 +01:00
Rollback code to fix notification breaking
This commit is contained in:
@@ -20,7 +20,10 @@ RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller, popup)
|
||||
if Config.Debug then print("QB-BossMenu: Adding $"..data.amount.." to account '"..tostring(biller.PlayerData.job.name).."'") end
|
||||
end
|
||||
elseif not biller then --Find the biller from their citizenid
|
||||
local biller = QBCore.Functions.GetPlayerByCitizenId(data.senderCitizenId)
|
||||
for k, v in pairs(QBCore.Functions.GetPlayers()) do
|
||||
local Player = QBCore.Functions.GetPlayer(v)
|
||||
if Player.PlayerData.citizenid == data.senderCitizenId then biller = Player end
|
||||
end
|
||||
TriggerClientEvent('QBCore:Notify', biller.PlayerData.source, data.sender.." Paid their $"..data.amount.." invoice", "success")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user