Commands#
There are no commands. The staff tools are server exports.
Client exports#
None. The resource has no client side.
Server exports#
Only resources in Config.StaffResources, the console and this resource itself may call these. Any other caller is refused and the console prints its name.
| Export | Returns |
|---|---|
GetQueue() |
{ list, players, max, joining, free, priority, hold } |
SetHold(on) |
ok, message |
Kick(license, reason) |
ok, message, name |
Move(license, how) |
ok, message, name |
Force(license) |
ok, message, name |
GetQueue fields:
| Field | Meaning |
|---|---|
list |
The line in order. Each entry has pos, license, name, discord, prio, tags, founder, skip, offline, wait (seconds) and graceLeft (seconds, only while offline). |
players |
Players currently connected. |
max |
Server slots (sv_maxclients). |
joining |
Players who passed the queue and are still loading in. |
free |
Free slots. |
priority |
Number of entries in Config.Priority. |
hold |
Whether testing mode is on. |
GetQueue includes licences and Discord ids, so never pass its result to players.
SetHold(true) makes everyone wait. SetHold(false) lets the queue admit people again on the next tick.
Kick removes a player from the queue and shows them "Removed from the queue by staff" with your reason, up to 200 characters.
Move takes how as 'top', 'up', 'down', 'bottom' or a position number. A moved player is pinned, so a later priority recheck does not undo the move.
Force admits a player even when no slot is free. If the city is full FiveM may still refuse them. It fails for a player who lost connection.
Events#
| Event | Side | Notes |
|---|---|---|
glitch-queue:images |
Server | Internal. Carries the resolved card picture links and only accepts calls from this resource. |
glitch-queue:resolveImages |
Server | Internal. Asks the image helper to resolve the picture list at start. |
Other resources have no events to listen for or trigger.
Integrations#
When present, the queue uses these exports from other resources:
| Resource | Export | Used for |
|---|---|---|
glitch-admin |
hasDiscordRole, trackRoles |
Role lookup by name when Config.RoleProvider is auto or glitch-admin. |
glitch-photos |
UploadImage |
Uploading card pictures to a CDN once per file version. |
Callbacks#
None.