fix(server/functions): hasitem single item check

This commit is contained in:
BerkieBb
2022-06-30 21:51:33 +02:00
committed by GitHub
parent 52cb62c3b2
commit c26879a702
+1 -1
View File
@@ -396,7 +396,7 @@ function QBCore.Functions.HasItem(source, items, amount)
end
else -- Single item as string
local item = Player.Functions.GetItemByName(items)
if item and (not amount or (amount and item.amount >= amount)) then
if item and (not amount or (item and amount and item.amount >= amount)) then
return true
end
end