Updated to Events.lua

To allow backwards compatibility, this update Broke many scripts.
This commit is contained in:
QBLes
2022-06-06 17:49:25 +10:00
committed by GitHub
parent c1bc866c45
commit 3c7f28f0b4
+1
View File
@@ -205,6 +205,7 @@ end)
QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items, amount)
local retval = false
if items == nil then return cb(true) end
local Player = QBCore.Functions.GetPlayer(source)
if not Player then return cb(false) end
local isTable = type(items) == 'table'