rollback notification changes

This commit is contained in:
Jim Shield
2022-06-22 14:20:36 +01:00
committed by GitHub
parent ec9dc51ccf
commit f5753df4b2

View File

@@ -32,7 +32,10 @@ RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller, gang)
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