> For the complete documentation index, see [llms.txt](https://quannsstudios.gitbook.io/quannsstudio-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quannsstudios.gitbook.io/quannsstudio-docs/queue-system/configuration.md).

# Configuration

***

All configuration lives in `config.lua`.

**Full Config**

lua

```lua
-- ============================================
-- GENERAL
-- ============================================
Config.General = {
    DiscordServerID  = "",   -- Your Discord server ID
    DiscordBotToken  = "",   -- Your Discord bot token
    WebhookURL       = "",   -- Discord webhook URL for kick alerts
    MaxSlotsConvar   = "sv_maxclients",
    DefaultMaxSlots  = 32,
}

-- ============================================
-- ROLES
-- ============================================
Config.Roles = {
    WhitelistedDiscordIDs = {
        "YOUR_DISCORD_USER_ID",  -- Bypasses queue entirely
    },

    RequiredRoles = {
        "YOUR_MEMBER_ROLE_ID",   -- Role required to connect
    },

    QueuePrio = {
        ["YOUR_STAFF_ROLE_ID"]  = 99999999,  -- Gets in first
        ["YOUR_DONOR_ROLE_ID"]  = 5,
        ["YOUR_MEMBER_ROLE_ID"] = 1,
        -- Add more roles as needed
    },
}

-- ============================================
-- QUEUE
-- ============================================
Config.Queue = {
    MinWaitTime  = 5,   -- Minimum seconds before letting a player through
    MaxWaitTime  = 10,  -- Maximum seconds before letting a player through
    HaltDuration = 3,   -- Seconds to pause queue after someone connects
}

-- ============================================
-- USERNAME BLACKLIST
-- ============================================
Config.UsernameBlacklist = {
    "admin", "moderator", "staff", "nigger", "nazi",
}

-- ============================================
-- CARDS
-- ============================================
Config.Cards = {
    LoadingText  = "Connecting to YourServer",
    QueueTitle   = "YourServer — Connect Queue",
    WelcomeText  = "Welcome back. Hold tight while we get you in.",
    FooterName   = "YourServer",
    FooterText   = "Stay in the queue — your spot is saved. Closing the game will remove you.",
    Button1Label = "Forums",
    Button1URL   = "https://yoursite.com",
    Button2Label = "Discord",
    Button2URL   = "https://discord.gg/yourserver",
    Button3Label = "Players",  -- do not touch
    Button4Label = "Store",
    Button4URL   = "https://yourstore.tebex.io",
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://quannsstudios.gitbook.io/quannsstudio-docs/queue-system/configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
