Update functions.lua
This commit is contained in:
1 parent
798ad3cd97
commit
57de95f880
1 file changed
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user