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

# Queue

## Features

* Holds players in a queue when the server is full and admits them in priority order,
* Priority can come from several sources at once: a base amount everyone gets, the database, Discord roles and a grace period,
* Choose whether priority sources stack together or only the highest one counts,
* Discord integration for role based priority, membership checks, account linking and full whitelist mode,
* A clean adaptive card shown while players wait, with your banner, your links and live queue info,
* Players can flip between the live queue list and a breakdown of their own priority,
* Grace period so a player who drops can get back in quickly instead of starting from the back,
* Join delay after a restart so the server settles before it starts admitting people,
* Database backed priority that persists across restarts,
* Admin commands and developer exports for managing priority on the fly,
* Logging to Discord, Fivemanage, Fivemerr, ox\_lib or your own custom handler,
* Server side only and built to stay light
