config/queue.lua) manages the server queue system, allowing you to create priority queues and customize the connection experience.
Timeout Settings
Amount of seconds to wait before removing a player from the queue after disconnecting while waiting.This prevents players from holding queue positions indefinitely if they disconnect.
Amount of seconds to wait before removing a player from the queue after disconnecting while installing server data.
An additional ~2 minutes will be waited due to limitations with how FiveM handles joining players.
Sub-Queue System
Sub-queues allow you to create priority tiers in your queue. Players are sorted by sub-queue priority first, then by join time within each sub-queue.Sub-queues from most to least prioritized.Important Rules:Default Configuration:
- Sub-queues are checked in order from first to last
- The first sub-queue without a
predicatefunction is the default queue - If a player doesn’t pass any predicate AND no default queue exists, they cannot join unless a slot is available
Sub-Queue Examples
Adaptive Card Text Options
Customize the appearance of text in the adaptive card for each sub-queue.Available Options:
Example:
| Option | Type | Values |
|---|---|---|
style | string | 'default', 'heading', 'columnHeader' |
fontType | string | 'default', 'monospace' |
size | string | 'small', 'default', 'medium', 'large', 'extralarge' |
weight | string | 'lighter', 'default', 'bolder' |
color | string | 'default', 'dark', 'light', 'accent', 'good', 'warning', 'attention' |
isSubtle | boolean | true, false |
Visual Customization
Cosmetic emojis shown along with the elapsed queue time. These cycle to indicate activity.Default:You can customize these with any emojis:
Whether to use the adaptive card generator defined in this config.Set to
false to use a simpler text-based queue display.Custom Adaptive Card
The adaptive card is the visual interface players see while in the queue.Generator function for the adaptive card display.Parameters (GenerateCardParams):
subQueue(SubQueue) - The sub-queue the player is inglobalPos(integer) - Player’s position in the entire queuetotalQueueSize(integer) - Total number of players in queuedisplayTime(string) - Formatted time string showing how long player has been waiting
table - Adaptive card JSON structureDefault Implementation:The default card shows:- “In Line” header
- “Joining [ServerName]” subheader
- Visual progress indicator (Queue • • You • • • Server)
- Sub-queue name, position (X/Y), and wait time
View Default Implementation
View Default Implementation
Customizing the Card
You can completely customize the adaptive card appearance:Learn more about Adaptive Cards at adaptivecards.io