Queues and priority for full FiveM servers
A queue resource holds players in playerConnecting deferrals, sorts them by priority and join time, updates each one’s position every few seconds with deferrals.update, and admits the first player whenever the online count drops below sv_maxclients. Priority comes from identifiers, Discord roles or database flags. Give crashed players a short grace period, keep a slot or two for staff, and publish your priority rules.
When a server is full at peak time, players either give up or wait. A queue turns “Server is full” into “You are 12th in line, about 4 minutes” — and a priority system lets staff, long-time members or supporters skip ahead. Done badly, it becomes the most-hated part of a server.

#How a queue works
- Player connects → the queue calls
deferrals.defer()and adds them to a list with their priority and join time. - A loop sorts the list and sends each player
deferrals.update('Position 5/23 – about 3 min'). - When the number of players online is below
sv_maxclients, the first entry getsdeferrals.done(). - Players who cancel are removed when their deferral is dropped.
Deferral basics: deferrals.
#Where priority comes from
| Source | Example |
|---|---|
| Identifier list | Staff licences in a config file |
| Discord roles | A bot checks roles; each role maps to a priority value |
| Database | Priority stored per player, set by staff or purchases |
| Time-based | Players who crashed in the last few minutes get back in first |
#Fairness rules that work
- Cap priority levels (for example 3) so the top tier cannot starve the rest.
- Show the reason: “Priority: Staff” or “Priority: Reconnect”.
- Give a 3–5 minute reconnect grace after a crash.
- Keep one or two slots for staff so moderation is always possible.
#When the queue gets stuck
| Symptom | Check |
|---|---|
| Queue never moves | Player count includes ghosts — compare with GetNumPlayerIndices() |
| Players join then drop instantly | Another resource refuses them later in the deferral chain |
| Positions jump around | Priority recalculated each loop from slow API calls — cache it |
| Queue works, players stuck on Connecting | A deferral path without done |
Questions
How do FiveM queues work?
How do I give Discord roles queue priority?
Can I reserve slots for staff?
Why does my queue not move?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.
Relevant to what you just read