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

# Installation

1. Drop the resource folder into your `resources/` directory. The folder **must** be named `s0u_queue`.
2. Import the schema the sql.sql file to your database
3. Add to `server.cfg`:

```sh
ensure s0u_queue
```

4. *(Optional)* Add the Tebex secret to `server.cfg` (preferred over editing `editable_server.lua`):

```sh
set sv_tebexSecret "your_server_secret_key"
```

5. *(Optional)* Edit `server/editable_server.lua` to paste your Discord Bot Token and channel IDs.
6. Start your server. The first admin to type `/queueadmin` (or press `F6`) will see the setup wizard.

> The script never writes back to `shared/config.lua` or `server/editable_server.lua` — runtime changes go to the `s0u_settings` table. Re-editing the config files always wins on resource restart.

7. Enjoy the script!
