Stack priority from two roles#
A player with both entries below gets 80 points and sits ahead of someone with only one.
Config.Priority = {
{ label = 'Supporter', points = 30, role = '123456789012345678' },
{ label = 'Staff', points = 50, role = { '234567890123456789', '345678901234567890' } },
}
Config.RoleProvider = 'discord'
Priority from an ace permission#
Config.Priority = {
{ label = 'Whitelisted', points = 20, ace = 'myserver.whitelisted' },
}
add_ace group.whitelisted myserver.whitelisted allow
Priority from your own check#
Config.Priority = {
{ label = 'Veteran', points = 25, check = function(src)
return Player(src).state.veteran == true
end },
}
Your own Discord role function#
Config.RoleProvider = 'custom'
Config.RoleCheck = function(discordId, role)
-- return true when this Discord id has the role entry
return MyRoles[discordId] and MyRoles[discordId][role] == true
end
Let an admin resource use the staff exports#
Add the resource to config/main.lua or config/local.lua:
Config.StaffResources = { 'your-admin-resource' }
Then, from that resource on the server:
local q = exports['glitch-queue']:GetQueue()
print(('%d in line, %d free slots'):format(#q.list, q.free))
local ok, msg = exports['glitch-queue']:SetHold(true) -- testing mode on
local ok2, msg2, name = exports['glitch-queue']:Move('license2:abc123', 'top')
local ok3 = exports['glitch-queue']:Force('license2:abc123')
Host the card pictures yourself#
Config.Card.Images = {
['btn-store'] = 'https://example.com/queue/btn-store.png',
['btn-website'] = 'https://example.com/queue/btn-website.png',
}
Stuck on a step?Ask in the Discord →