Update functions.lua
This commit is contained in:
1 parent
41b66a45e4
commit
2c112c8927
1 file changed
+3
-3
@@ -278,11 +278,11 @@ function ChecknRemove(source, table)
|
|||||||
Notifys(source, 'You Need ' .. v .. ' Of ' .. GetLabels(k) .. ' To Do this', 'error')
|
Notifys(source, 'You Need ' .. v .. ' Of ' .. GetLabels(k) .. ' To Do this', 'error')
|
||||||
end
|
end
|
||||||
elseif inventory == 'ox' then
|
elseif inventory == 'ox' then
|
||||||
local has = exports.ox_inventory:GetItem(source, k , nil, true)
|
local items = exports.ox_inventory:GetItem(source, item, nil, false)
|
||||||
if has.count >= v then
|
if items.count >= amount then
|
||||||
hass = hass + 1
|
hass = hass + 1
|
||||||
else
|
else
|
||||||
Notifys(source, 'You Need ' .. v .. ' Of ' .. GetLabels(k) .. ' To Do This', 'error')
|
Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user