Commands
Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.
Console Commands
This section explains how to use the built-in console commands for interacting with the cad-queue system. These commands allow server administrators to check queue positions, modify them, and view priority or queue count.
How it works ?
All commands are executed via RCON using the prefix:
queue <subcommand> <arguments>
Below is the list of supported operations.
 getpos
Usage:
queue getpos <identifier>Returns the player’s current queue position.
shiftpos
Usage:
queue shiftpos <identifier> <new_position>Moves a player to a new queue position.
Example Output:
steam:11000014ABCD123 was shifted to 2getprio
Usage:
queue getprio <identifier>Returns priority information as JSON.
getqcount
Usage:
queue getqcountShows how many players are currently in the queue.
Discord Commands
The same commands also work from a Discord channel:
Give your bot the
Read Messages,Send MessagesandMessage Contentpermissions.In
config/discord.lua, fill inbot_token, then set upConfig.Bot(enabled = true, the channel id, and who is allowed to use it).Type the commands in that channel with the prefix, e.g.
!queue getqcount.
Anyone not listed in allowed_roles or allowed_users gets a "not allowed" reply. Messages sent before the resource started are ignored.
