Shop config
In rcore_clothing\config.lua
you can create new shops in the Config.ClothingShops
table.
You can read more about that in the Config documentation.
Each shop in Config.ClothingShops
can have a config
field. This field consists of structure
and modifiers
.
Example shop with config:
Shop configs are very powerful, you can create many combinations of shops you can think of. A barber shop, plastic surgery, a shop that only sells masks, glasses, jewelry...
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 Admin mode's stock management.
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.
How to use shop configs
All available structures and modifiers can be found in rcore_clothing\shared\const.lua
.
Structure
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
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
.
Shop aliases
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:
Last updated