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

# Config

Edit `rcore_dealership/config.lua` for global settings that apply to the whole script.

## 🐞 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_dealership/locales`.

```lua
Config.Locale = 'en'
```

Only `en.lua` is included by default. See the [Locale](/paid-resources/rcore_dealership/configuration/locale.md) page to add your own language.

## 📏 Units

Choose the speed units shown in the UI.

```lua
Config.Units = Units.METRIC
```

| Value            | Result |
| ---------------- | ------ |
| `Units.METRIC`   | km/h   |
| `Units.IMPERIAL` | mph    |

## 🔎 Auto Detection

These options are detected automatically by default. Set them manually only if auto detection finds the wrong resource.

| Option             | Default       |
| ------------------ | ------------- |
| `Config.Framework` | `AUTO_DETECT` |
| `Config.Database`  | `AUTO_DETECT` |
| `Config.Target`    | `AUTO_DETECT` |
| `Config.Society`   | `AUTO_DETECT` |

## 🛡️ Admin Groups

`Config.FrameworkAdminGroups` controls which framework groups count as admins for the admin tablet.

| Framework | Default groups        |
| --------- | --------------------- |
| ESX       | `superadmin`, `admin` |
| QBCore    | `god`, `admin`        |

## ⌨️ Commands

Change the command names in `Config.Commands`.

| Option           | Default                    | Description                                                                                |
| ---------------- | -------------------------- | ------------------------------------------------------------------------------------------ |
| `Admin`          | `dealershipadmin`          | Opens the admin tablet.                                                                    |
| `CustomerTablet` | `mydealership`             | Opens the customer tablet.                                                                 |
| `ManualNPCOrder` | `dealership_npc_order`     | Generates a new NPC order for a dealership. Usage: `/dealership_npc_order <dealershipId>`. |
| `SeedVehicles`   | `dealership_seed_vehicles` | Seeds vehicles into the database. Usage: `dealership_seed_vehicles confirm`.               |

## 🧪 Experimental

`Config.Experimental` toggles experimental features. Leave it at `Experimentals.NONE` unless instructed otherwise.
