mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
rollback notification changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user