Install
- Put
tml_queuein your resources folder. Keep the folder nametml_queue. - Add
ensure tml_queuetoserver.cfgafter oxmysql (and Badger_Discord_API, if you use it). Start it early, before your framework, so it sees every connection. - Start the server. The database tables are created automatically (
install.sqlhas the same statements if you would rather run them by hand). - In
config/config.lua, setConfig.Card.serverName, the card buttons, and the Discord role priorities if you want them. - For Discord role priority with the built-in bot, follow the steps in
config/server.lua(bot token, "Server Members Intent", guild id). The console printsroles=discordat start when it's active.
Commands
From the server console, txAdmin's live console, or in game with the ACE permission:
add_ace group.admin tml_queue.admin allow
| Command | What it does |
|---|---|
queue |
List everyone waiting |
queue_addprio <identifier> <points> [days] [label] |
Give priority (no days = permanent) |
queue_removeprio <identifier> |
Remove database priority |
| `queue_whitelist add | remove [note]` |
queue_skip <position or identifier> |
Move someone in the queue to the front |
Identifiers look like discord:123456789012345678, license:abc123..., steam:110000... or fivem:123456.
Testing the queue
Set Config.Queue.maxSlots = 1 and connect with two clients: the second waits in the queue until the first leaves.
Set it back to 0 (use sv_maxclients) afterwards.