# Main config

Here you can find explanation of settings in `config.lua`

### Language

To change the language, go to config.lua and change value `Locale` to any of the available languages listed on the same row.

To add your own language, go to `rcore_clothing\locales`, copy `en.lua` and translate the values inside.\
Name the new file to your country code (e.g. `fr.lua` for French), save it and change it in config.\
Don't forget to change the `Locale['en']` to your country code in the new file. (e.g. `Locale['fr']` for French)

### Clothing Shops

Here you can specify which shops will be avaiable for players to buy clothes from.

* **label** - name of the shop
* **type**
  * type of the shop (binco, suburban, ponsonbys, ammunation, vangelico, barber, beach\_masks or any new shop you want to create)
  * All shops under one type will share the same availabl clothing
  * **blip** - blip (map icon) settings for the shop
  * **pos** - position of the shop (x,y,z,heading)
  * **config** - configuration of the shop to enable/disable certain features more in [Shop Configs](/paid-resources/rcore_clothing/configs/shop_configs.md)

Example shop:

```lua
{
    label = 'BINCO',
    type = 'binco',
    blip = { title = "Second Hand", colour = 39, id = 73 },
    pos = vector4(75.61, -1399.3, 28.41, 0.5),
    config = SHOP_CONFIG_ALIAS.CLOTHING,
},
```

### Job Changing Rooms

Same as shops, but used for players to change clothes for their job.

Example job changing room:

```lua
{
    label = 'Changing Room',
    type = 'job_police',
    pos = vector3(455.29, -991.16, 29.72),
    jobs = { 'police' },
},
```

### Player changing room

Place these into player homes or other places where players can change clothes. You need to only specify the position.

Example:

```lua
{ pos = vec4(-159.20, -308.86, 39.0, 23.0) },
```

### Other

* `EveryShopHasEverything`
  * Every shop will have every clothing available (no categorizing to binco, suburban, ponson etc.)
* `CharCreatorHasEverything`
  * Players will be able to choose any clothes in char creator
* `ClothingAceRestrictionOptions`
  * If you want to restrict clothing to ACE groups, you need to specify the groups here
* `Checkpoint`
  * Shop marker settings if you are not using target script

## ❗ DANGER ZONE

Do not change anything in the danger zone unless you know what you are doing.

In here you will be able to force set framework and database stuff. This is automatically done for you if you do not touch this part.


---

# 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/config.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.
