# Configuration

#### Basic Settings

| Setting                  | Type    | Default | Description                                        |
| ------------------------ | ------- | ------- | -------------------------------------------------- |
| `joinDelay`              | number  | 10      | Seconds before players can join after server start |
| `cooldown`               | number  | 3       | Seconds between connection attempts (anti-spam)    |
| `displayQueueInHostName` | boolean | true    | Show queue count in server name                    |
| `maxPlayersToDisplay`    | number  | 10      | Max players shown in queue list page               |
| `consoleInfo`            | boolean | true    | Print queue information to console                 |
| `stackPrio`              | boolean | true    | Stack priority points or use highest only          |
| `theme`                  | number  | 1       | Card theme: 1=Flight, 2=Modern, 3=Classic          |
| `debug`                  | boolean | false   | Enable detailed debug information                  |

#### Discord Integration

| Setting             | Type    | Description                            |
| ------------------- | ------- | -------------------------------------- |
| `enabled`           | boolean | Enable/disable all Discord features    |
| `requireIdentifier` | boolean | Require Discord linked to FiveM        |
| `requireInGuild`    | boolean | Require player in Discord server       |
| `whitelist`         | boolean | Enable whitelist system                |
| `whitelistRoleId`   | number  | Required Discord role ID for whitelist |
| `botToken`          | string  | Discord bot token for API access       |
| `guildId`           | string  | Discord server ID                      |

#### Priority Roles Configuration

```lua
cfg.prioRoles = {
    {label = 'Management', roleId = 1331365630519148578, points = 100},
    {label = 'VIP', roleId = 1234567890123456789, points = 50},
    {label = 'Supporter', roleId = 9876543210987654321, points = 25}
}
```

**Requirements:**

* `label` - Display name for the role (string, required)
* `roleId` - Discord role ID (number, required)
* `points` - Priority points awarded (number, must be > 0)
