Merge pull request #795 from D4isDAVID/fix/lint

👕 Remove usage of `source` in client script
This commit is contained in:
Kakarot
2022-08-19 13:03:44 -07:00
committed by GitHub
+1 -1
View File
@@ -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)