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
end
elseif inventory == 'ox' then
local has = exports.ox_inventory:GetItem(source, item , nil, true)
if has >= amount then
return true
local item = ox_inventory:GetItem(source, item, nil, false)
if item.count >= amount then
return true
end
else
Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')
return false