Shop config
Last updated
Was this helpful?
Last updated
Was this helpful?
In rcore_clothing\config.lua
you can create new shops in the Config.ClothingShops
table.
You can read more about that in the documentation.
Each shop in Config.ClothingShops
can have a config
field. This field consists of structure
and modifiers
.
Example shop with config:
If a shop does not have a config field, it will contain all available structures.
If a shop has for example structure for pants defined, it does not mean all available pants will be sold there. You need to add them using .
This also works the other way around. If a shop does not have a structure for pants defined and you add them in stock management, the category will still not be visible in the shop.
All available structures and modifiers can be found in rcore_clothing\shared\const.lua
.
Structures define what kind of categories will be visible in the shop. Whether it is pants, shoes, hats, or even char creator features like hair and face.
To find all currently available structures, check SHOP_STRUCTURE
in rcore_clothing\shared\const.lua
.
Modifiers are used to change the behavior of the shop. For example, you can make everything in the shop free.
To find all currently available modifiers, check SHOP_MODIFIERS
in rcore_clothing\shared\const.lua
.
To keep the config clean and the shop configs easy to use, we prepared some aliases that you can use instead of the structure and modifiers.
You can find all available aliases in rcore_clothing\shared\const.lua
under SHOP_CONFIG_ALIAS
. Feel free to add new aliases for your usage.
Example shop with aliases: