> For the complete documentation index, see [llms.txt](https://matyx-scripts.gitbook.io/matyx-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matyx-scripts.gitbook.io/matyx-scripts-docs/scripts/matyx_pdcount/configuration.md).

# Configuration

All settings are located in the config.lua file.

All settings are located in the `config.lua` file.

{% hint style="info" %}

#### 1. **Language Settings**

* Change `Config.Language` to your desired language (e.g., `'en'`, `'cs'`, `'de'`).
* Supported languages:
  * English (`'en'`)
  * Czech (`'cs'`)
  * German (`'de'`)
  * Spanish (`'es'`)
    {% endhint %}

```lua
Example:
Config.Language = 'en'
```

{% hint style="info" %}

#### 2. **Adding Actions**

* You can add or modify actions in `Config.RobberyActions`.
* Each action has:
  * `label`: The name of the action (uses translation from the language pack).
  * `requiredCops`: The number of required police officers.
  * `requiredJobs`: Allowed jobs (e.g., `police`, `sheriff`).
    {% endhint %}

```lua
Example:
Config.RobberyActions = {
    ['shop_robbery'] = {
        label = Config.Languages[Config.Language].shopRobberyLabel,
        requiredCops = 2,
        requiredJobs = { 'police', 'sheriff' }
    },
    ['bank_robbery'] = {
        label = Config.Languages[Config.Language].bankRobberyLabel,
        requiredCops = 5,
        requiredJobs = { 'police', 'sheriff', 'fbi' }
    }
}
```

{% hint style="info" %}

#### 3. **Adding a New Language**

* To add a new language, extend `Config.Languages`.
* Example for Spanish:
  {% endhint %}

```lua
Config.Languages['es'] = {
    robberyMenuTitle = "Robos disponibles",
    notEnoughCops = "¡No hay suficientes policías!",
    copsRequired = "Policías requeridos: %d",
    shopRobberyLabel = "Robo de tienda",
    bankRobberyLabel = "Robo de banco"
}
```
