All I ask is that if you enjoy this resource, please give it a like on the forum page, on GitHub (if you have an account), and pop me a follow over on GitHub.
What is it?
This is basically a discord queue for logging into a server. When you connect to the server, you get added to a queue. Depending on your priority, you can be at the back of the queue or added to the top automatically. This all depends on what discord roles you have considering it works off of priority numbers. I'm not the best at writing descriptions. I'll be honest, I personally am probably not going to use this script, but I had a lot of people request this script from me, so here it is. Why not increase my rep within the Fivem community?
Badger's Discord Community
Installation
Dependencies
Screenshots
Configuration
Config = {
Default_Prio = 500000, -- This is the default priority value if a discord isn't found
AllowedPerTick = 1, -- How many players should we allow to connect at a time?
HostDisplayQueue = true,
onlyActiveWhenFull = true,
Displays = {
Prefix = '[BadgerDiscordQueue]',
ConnectingLoop = {
'🦡🌿🦡🌿🦡🌿',
'🌿🦡🌿🦡🌿🦡',
'🦡🌿🦡🌿🦡🥦',
'🌿🦡🌿🦡🥦🦡',
'🦡🌿🦡🥦🦡🥦',
'🌿🦡🥦🦡🥦🦡',
'🦡🥦🦡🥦🦡🥦',
'🥦🦡🥦🦡🥦🦡',
'🦡🥦🦡🥦🦡🌿',
'🥦🦡🥦🦡🌿🦡',
'🦡🥦🦡🌿🦡🌿',
'🥦🦡🌿🦡🌿🦡',
},
Messages = {
MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ', -- Default message if they have no discord roles
MSG_CONNECTED = 'You are up! You are being connected now :)'
}
}
}
Config.Rankings = {
-- LOWER NUMBER === HIGHER PRIORITY
-- ['roleID'] = {rolePriority, connectQueueMessage},
['1'] = {500, "You are being connected (donate for a better priority) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Discord User
['1'] = {400, "You are being connected (Donator Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Donator
['1'] = {300, "You are being connected (Trial-Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Trial Mod
['1'] = {200, "You are being connected (Mod Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Mod
['1'] = {100, "You are being connected (Admin Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Admin
['1'] = {1, "You are being connected (Management Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:"}, -- Management
}
Replace the '1's in the configuration with the discord role ID you want to set up priority for