# 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](/paid-resources/rcore_clothing/configs/config.md) documentation.

Each shop in `Config.ClothingShops` can have a `config` field. This field consists of `structure` and `modifiers`.

Example shop with config:

```lua
{
    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,
        }
    }
},
```

{% hint style="info" %}
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...
{% endhint %}

{% hint style="warning" %}
If a shop does not have a config field, it will contain all available structures.
{% endhint %}

{% hint style="warning" %}
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](/paid-resources/rcore_clothing/admin/modes.md).

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.
{% endhint %}

## 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:

```lua
{
    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,
},
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_clothing/configs/shop_configs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
