Feel free to add more types (small / medium / large) following the same format
Size is only used in inventories that support a max weight
Untested, but in inventories that limit by slots you should be able to set this to slots instead
client/config.lua
This area of the guide will be improved over time. This resource has been developed using a single inventory but should be usable with all inventories with minor modifications.
-- Available data
data.id --storage unit unique identifier (from database)
details.identifier --same as above
details.owner --playerowner identifier
details.location --storage unit location (from shared/config.lua)
details.type --storage unit type (from shared/config.lua)
details.isrented --true / false
details.price --price that unit was either bought at / rented for
Config.Locations[details.location].label --gets label for storage facility
Config.Locations[details.location].location --gets location for storage facility
Config.UnitSettings[details.type].size --gets unit max weight / slots
Config.UnitSettings[details.type].label --gets units specific label
Use Config.UnitSettings[details.type].size and set it to a slot limit in the config for inventories that use slots instead of weight
-- Available data
data.id --storage unit unique identifier (from database)
details.identifier --same as above
details.owner --playerowner identifier
details.location --storage unit location (from shared/config.lua)
details.type --storage unit type (from shared/config.lua)
details.isrented --true / false
details.price --price that unit was either bought at / rented for
Config.Locations[details.location].label --gets label for storage facility
Config.Locations[details.location].location --gets location for storage facility
Config.UnitSettings[details.type].size --gets unit max weight / slots
Config.UnitSettings[details.type].label --gets units specific label
Use Config.UnitSettings[details.type].size and set it to a slot limit in the config for inventories that use slots instead of weight