Stupid, Stupid, Stupid

This commit is contained in:
GhzGarage
2021-06-27 17:52:24 -05:00
parent 9a9a2f78e2
commit af5c2f9d71
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items)
local count = 0
for k, v in pairs(items) do
if Player ~= nil then
if Player.Functions.GetItemByName(v) > 0 then
if Player.Functions.GetItemByName(v) ~= nil then
count = count + 1
if count == #items then
retval = true
@@ -270,7 +270,7 @@ QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items)
end
else
if Player ~= nil then
if Player.Functions.GetItemByName(items) > 0 then
if Player.Functions.GetItemByName(items) ~= nil then
retval = true
end
end