mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 17:01:16 +00:00
Stupid, Stupid, Stupid
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -365,7 +365,7 @@ QBCore.Player.CreatePlayer = function(PlayerData)
|
||||
if slot ~= nil then
|
||||
return self.PlayerData.items[slot]
|
||||
end
|
||||
return 0
|
||||
return nil
|
||||
end
|
||||
|
||||
self.Functions.GetItemsByName = function(item)
|
||||
|
||||
Reference in New Issue
Block a user