so the limit got added
can you ad in so its not like 5/64
but like 5/5 for bread
or 4/10 for water
like not the max is alway on 64
like this
function inventory.checkLimit(_source, name)
local value = 64
if Config.Limit[name] ~= nil then
value = Config.Limit[name]
end
return tonumber(value)
end
it will be nice that pr item you can set the limit and it then also sets the max in the inventory
so the limit got added can you ad in so its not like 5/64 but like 5/5 for bread or 4/10 for water
like not the max is alway on 64 like this
function inventory.checkLimit(_source, name) local value = 64 if Config.Limit[name] ~= nil then value = Config.Limit[name] end return tonumber(value) end
it will be nice that pr item you can set the limit and it then also sets the max in the inventory