If item not found return 0 instead of nil

This commit is contained in:
BerkieBb
2021-06-27 16:59:23 +02:00
committed by GitHub
parent d5ab54851e
commit b5e70e1bce
+1 -1
View File
@@ -365,7 +365,7 @@ QBCore.Player.CreatePlayer = function(PlayerData)
if slot ~= nil then
return self.PlayerData.items[slot]
end
return nil
return 0
end
self.Functions.GetItemsByName = function(item)