mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 17:23:31 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -34,7 +34,7 @@ function QBCore.Functions.HasItem(items, amount)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
else -- Single item as string
|
else -- Single item as string
|
||||||
if itemData and itemData.name == items and (not amount or (amount and itemData.amount >= amount)) then
|
if itemData and itemData.name == items and (not amount or (itemData and amount and itemData.amount >= amount)) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -238,7 +238,7 @@ QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items, am
|
|||||||
end
|
end
|
||||||
else -- Single item as string
|
else -- Single item as string
|
||||||
local item = Player.Functions.GetItemByName(items)
|
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
|
||||||
retval = true
|
retval = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user