Update functions.lua
This commit is contained in:
1 parent
88bf966b91
commit
4938821793
1 file changed
+2
-3
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user