> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-boxing-and-fight-club/cas-fightclub/configuration.md).

# Configuration

CAS Fight Club configuration for RedM: spectator crowd, seats, the /fcfilm camera tour and its atmospheres, map blip, admin permission and debug settings in shared/config.lua.

Everything is in `shared/config.lua`.

| Setting                | Default             | Meaning                                                |
| ---------------------- | ------------------- | ------------------------------------------------------ |
| `Config.Locale`        | `'en'`              | Language file in `locales/`                            |
| `Config.CrowdEnabled`  | `true`              | Spectator NPCs on when the server starts               |
| `Config.CrowdDistance` | `35.0`              | Spectators appear when a player is this close (metres) |
| `Config.SeatsEnabled`  | `true`              | Players can sit on chairs and benches                  |
| `Config.SeatKey`       | `E`                 | Key held to sit and stand up                           |
| `Config.Film.enabled`  | `true`              | The `/fcfilm` camera tour                              |
| `Config.Blip.enabled`  | `true`              | Map blip                                               |
| `Config.AdminAce`      | `'fightclub.admin'` | Permission for `fightclub crowd on/off`                |
| `Config.Debug`         | `false`             | Extra lines in the client log                          |

## Film atmospheres

Each atmosphere of `/fcfilm` sets a time of day and a weather:

```lua
atmospheres = {
    day     = { hour = 11, minute = 0,  weather = 'sunny',  set = 'full' },
    evening = { hour = 19, minute = 30, weather = 'clouds', set = 'mood' },
    rain    = { hour = 17, minute = 30, weather = 'rain',   set = 'weather' },
    snow    = { hour = 13, minute = 0,  weather = 'snow',   set = 'weather', snow = true },
    night   = { hour = 23, minute = 0,  weather = 'sunny',  set = 'mood' },
},
```

`Config.Film.letterbox` turns the black cinema bars on or off by default.
