error with identifier (#445)

Change xPlayer to sourceXPlayer and fixing misprinting in the console.
This commit is contained in:
btwlouis
2020-07-03 18:54:38 +02:00
committed by GitHub
parent aba3486c87
commit 41c71d4d45
+1 -1
View File
@@ -16,7 +16,7 @@ AddEventHandler('esx_policejob:confiscatePlayerItem', function(target, itemType,
local targetXPlayer = ESX.GetPlayerFromId(target)
if sourceXPlayer.job.name ~= 'police' then
print(('esx_policejob: %s attempted to confiscate!'):format(xPlayer.identifier))
print(('esx_policejob: %s attempted to confiscate!'):format(sourceXPlayer.identifier))
return
end