Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-10-01 09:06:03 -07:00
1 parent 88bf966b91
commit 4938821793
1 file changed
+2 -3
+2 -3
View File
@@ -103,9 +103,8 @@ function Itemcheck(source, item, amount)
end end
elseif inventory == 'ox' then elseif inventory == 'ox' then
local item = ox_inventory:GetItem(source, item, nil, false) local item = ox_inventory:GetItem(source, item, nil, false)
if item.count >= 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