Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-09-30 12:52:16 -07:00
1 parent 798ad3cd97
commit 57de95f880
1 file changed
+4 -3
+4 -3
View File
@@ -102,9 +102,10 @@ function Itemcheck(source, item, amount)
return false return false
end end
elseif inventory == 'ox' then elseif inventory == 'ox' then
local has = exports.ox_inventory:GetItem(source, item , nil, true) local item = ox_inventory:GetItem(source, item, nil, false)
if has >= amount then if item.count >= amount then
return true return true
end
else else
Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error') Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')
return false return false