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')