Update functions.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-10-01 18:35:06 -07:00
1 parent 9a24682aac
commit 6e7fd5441f
1 file changed
+2 -2
+2 -2
View File
@@ -278,8 +278,8 @@ function ChecknRemove(source, table)
Notifys(source, 'You Need ' .. v .. ' Of ' .. GetLabels(k) .. ' To Do this', 'error')
end
elseif inventory == 'ox' then
local items = exports.ox_inventory:GetItem(source, item, nil, false)
if items.count >= amount then
local items = exports.ox_inventory:GetItem(source, k, nil, false)
if items.count >= v then
hass = hass + 1
else
Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')