From 41c71d4d45435f1ac959f1070ce31fee36ef7540 Mon Sep 17 00:00:00 2001 From: btwlouis <56355239+btwlouis@users.noreply.github.com> Date: Fri, 3 Jul 2020 18:54:38 +0200 Subject: [PATCH] error with identifier (#445) Change xPlayer to sourceXPlayer and fixing misprinting in the console. --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index b15030ce..3145622b 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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