Merge pull request #716 from QBLes/patch-1

Updated to Events.lua
This commit is contained in:
Kakarot
2022-06-15 18:09:20 -07:00
committed by GitHub
+1
View File
@@ -204,6 +204,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'