From 6e7fd5441fea9ce8d93b46c4e6d694454c1e26bc Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:35:06 -0700 Subject: [PATCH] Update functions.lua --- server/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/functions.lua b/server/functions.lua index 5a6243b..a5924ba 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -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')