> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_mdt/configuration/shared-config.md).

# Shared Config

Edit `configs/sh_config.lua` for the language, framework, permissions, and departments. Restart the resource after any change.

## 🛠️ Debug

Use debug only when testing or when support asks for more information.

```lua
CONFIG.Debug = false
```

## 💬 Locale

Set the language file loaded from `rcore_mdt/locales`.

```lua
CONFIG.Locale = 'en'
```

Included languages: `en`, `es`, and `fr`. See [Locale](https://documentation.rcore.cz/paid-resources/rcore_mdt/configuration/locale.md).

## 🧩 Framework

```lua
CONFIG.Framework = Framework.ESX
```

| Value                  | Framework  |
| ---------------------- | ---------- |
| `Framework.ESX`        | ESX        |
| `Framework.QBCore`     | QBCore     |
| `Framework.QBox`       | QBX        |
| `Framework.Standalone` | Standalone |

{% hint style="warning" %}
The framework is not detected automatically. Always use a `Framework.` value, not a plain string.
{% endhint %}

## 🛡️ Permissions

`CONFIG.Permissions` lists every permission a rank can be given. Ranks receive them in each job's `Perms` table. See [Add Jobs](https://documentation.rcore.cz/paid-resources/rcore_mdt/configuration/add-jobs.md#rank-permissions).

| Permission    | Allows                                                        |
| ------------- | ------------------------------------------------------------- |
| `incidents`   | Create and delete incidents, remove criminals from incidents. |
| `profiles`    | Edit civilian profiles.                                       |
| `bolos`       | Create, edit, and delete BOLOs.                               |
| `case_files`  | Edit and delete case file topics, delete replies.             |
| `bulletins`   | Post and delete bulletins.                                    |
| `penal_codes` | Create, update, and delete penal codes.                       |
| `boards`      | Create, edit, delete, and take control of evidence boards.    |
| `fines`       | Change a fine's status.                                       |
| `medical`     | Create, update, and delete medical records.                   |
| `vehicles`    | Add and delete vehicle notes, mark and clear wanted vehicles. |

Ranks without a permission can still view that section.

## 🏢 Jobs

`CONFIG.JOBS` defines every department that can use the MDT, with its ranks, permissions, units, and screens. See [Add Jobs](https://documentation.rcore.cz/paid-resources/rcore_mdt/configuration/add-jobs.md).
