> 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/client-config.md).

# Client Config

Edit `configs/cl_config.lua` to change how players open the MDT. Restart the resource after any change.

## 🎒 Item Requirement

When enabled, players must carry the item to open the MDT.

```lua
CONFIG.RequireItem  = false
CONFIG.RequiredItem = 'mdt'
```

| Option                | Default | Description                                          |
| --------------------- | ------- | ---------------------------------------------------- |
| `CONFIG.RequireItem`  | `false` | Requires the item to open the MDT.                   |
| `CONFIG.RequiredItem` | `'mdt'` | Item name. It must exist in your inventory resource. |

## ⌨️ Open Command

```lua
CONFIG.OpenCommand = 'mdt'
CONFIG.OpenEvent   = 'rcore_mdt:client:open'
```

| Option               | Default                   | Description                                                                                                                                 |
| -------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `CONFIG.OpenCommand` | `'mdt'`                   | Chat command that opens and closes the MDT. Set to `false` to disable it.                                                                   |
| `CONFIG.OpenEvent`   | `'rcore_mdt:client:open'` | Event other resources can trigger to open the MDT. See [Client API](https://documentation.rcore.cz/paid-resources/rcore_mdt/api/client.md). |
