> For the complete documentation index, see [llms.txt](https://doc.var-fivem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.var-fivem.com/chess/configuration/config.md).

# Config

Everything lives in `shared/sh.lua`.

### Framework

{% code title="shared/sh.lua" %}

```lua
Shared.Framework = {
    autoDetect = true,   -- detect ESX / QBCore / Standalone at runtime
    ESX        = false,  -- when autoDetect = false, force one of these
    QBCore     = false,
    Standalone = false,
}
```

{% endcode %}

### Key options

| Option                         | Description                                                                                  |
| ------------------------------ | -------------------------------------------------------------------------------------------- |
| `Config.Locations`             | World spots where a table spawns (coords, heading, blip toggle).                             |
| `Config.Betting`               | `enabled`, `account` (`money` or `bank`), `min`, `max`, `presets`, `houseCut`, `drawRefund`. |
| `Config.AI.levels`             | Difficulty list, each `{ id, depth, randomness, moveDelay }`.                                |
| `Config.Sit` / `Config.Camera` | Seated ped placement and the overhead / scene cameras.                                       |
| `Config.Spotlight`             | Overhead table light (night-only by default).                                                |
| `Shared.Locale`                | All on-screen text.                                                                          |

### Adding a table

{% code title="shared/sh.lua" %}

```lua
Config.Locations = {
    { coords = vec3(-1319.88, -925.41, 10.2), heading = 104.88, blip = true },
    -- add more spots here
}
```

{% endcode %}

{% hint style="info" %}
Set `Config.Debug = true` to enable the in-world tuning commands `/chesssit`, `/chesscam` and `/chesschair` for dialing in ped and camera placement. Turn it back off for production.
{% endhint %}
