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:

{
    label = 'Binco - Free pants',
    type = 'binco',
    blip = { title = "", colour = 46, id = 73 },
    pos = vector4(-158.72, -297.13, 38.76, 162.5),
    config = {
        structure = {
            [SHOP_STRUCTURE.CLOTHING_PANTS] = true,
        },
        modifiers = {
            [SHOP_MODIFIERS.IS_EVERYTHING_FREE] = true,
        }
    }
},

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...

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:

{
    label = 'Barber Shop',
    type = 'barber',
    blip = { title = "Barber Shop", colour = 46, id = 73 },
    pos = vector4(-158.72, -297.13, 38.76, 162.5),
    config = SHOP_CONFIG_ALIAS.BARBER,
},

Last updated

Was this helpful?