From ca494fc88d3e661d4078e6628aa389f5827d5b7e Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:39:06 -0700 Subject: [PATCH] Update functions.lua --- server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/functions.lua b/server/functions.lua index f7f6a49..375a056 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -103,7 +103,7 @@ function Itemcheck(source, item, amount) end elseif inventory == 'ox' then local has = exports.ox_inventory:GetItem(source, item , nil, true) - if has.count >= amount then + if has >= amount then return true else Notifys(source, 'You Need ' .. amount .. ' Of ' .. GetLabels(item) .. ' To Do This', 'error')