From ee92e7f436097e125f4ac9d6b9bd197f44678d22 Mon Sep 17 00:00:00 2001 From: David Malchin Date: Fri, 19 Aug 2022 22:51:05 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=95=20Remove=20usage=20of=20`source`?= =?UTF-8?q?=20in=20client=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/events.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/events.lua b/client/events.lua index e9b6655..fe7d513 100644 --- a/client/events.lua +++ b/client/events.lua @@ -174,7 +174,7 @@ end) -- This event is exploitable and should not be used. It has been deprecated, and will be removed soon. RegisterNetEvent('QBCore:Client:UseItem', function(item) - QBCore.Debug(string.format("%s triggered QBCore:Client:UseItem by ID %s with the following data. This event is deprecated due to exploitation, and will be removed soon. Check qb-inventory for the right use on this event.", GetInvokingResource(), source)) + QBCore.Debug(string.format("%s triggered QBCore:Client:UseItem by ID %s with the following data. This event is deprecated due to exploitation, and will be removed soon. Check qb-inventory for the right use on this event.", GetInvokingResource(), GetPlayerServerId(PlayerId()))) QBCore.Debug(item) end)