[RELEASE] Bad-DiscordQueue (A discord role-based queue system) {by Badger}

Documentation as well as updates to this resource have been moved to: Bad-DiscordQueue - Badger Docs

Paid Version

Check out the paid resource here which implements AdaptiveCards for a nice clean finish for any server:

All I ask

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?

Dependencies

Installation

Screenshots

Queue Gif

Configuration

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	Displays = {
		Prefix = '[BadgerDiscordQueue]',
		ConnectingLoop = { 
			'🦡🌿🦡🌿🦡🌿',
			'🌿🦡🌿🦡🌿🦡',
			'🦡🌿🦡🌿🦡🥦',
			'🌿🦡🌿🦡🥦🦡',
			'🦡🌿🦡🥦🦡🥦',
			'🌿🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🥦',
			'🥦🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🌿',
			'🥦🦡🥦🦡🌿🦡',
			'🦡🥦🦡🌿🦡🌿',
			'🥦🦡🌿🦡🌿🦡',
		},
		Messages = {
			MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ',
			MSG_CONNECTED = 'You are up! You are being connected now :)'
		}
	}
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	['1'] = 500, -- Discord User 
	['1'] = 400, -- Donator 
	['1'] = 300, -- Trial Mod 
	['1'] = 200, -- Mod 
	['1'] = 100, -- Admin 
	['1'] = 1, -- Management
}
  • Replace the '1's in the configuration with the discord role ID you want to set up priority for

Download

17 Likes

YAY YOU FINALLY MADE IT! I asked so long agoni thought you have forgotten lol.

Thanks sir. For another good scirpt.

1 Like

Badger is legit prob one of the best devs out here -Noah A

Good one!

You have been on the grind lately. Good job man!

NEW UPDATE

You can now change how many people are permitted to connect at a time. (You want 5 players to join at a time, then set it in the configuration)

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	AllowedPerTick = 5, -- How many players should we allow to connect at a time?
	Displays = {
		Prefix = '[BadgerDiscordQueue]',
		ConnectingLoop = { 
			'🦡🌿🦡🌿🦡🌿',
			'🌿🦡🌿🦡🌿🦡',
			'🦡🌿🦡🌿🦡🥦',
			'🌿🦡🌿🦡🥦🦡',
			'🦡🌿🦡🥦🦡🥦',
			'🌿🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🥦',
			'🥦🦡🥦🦡🥦🦡',
			'🦡🥦🦡🥦🦡🌿',
			'🥦🦡🥦🦡🌿🦡',
			'🦡🥦🦡🌿🦡🌿',
			'🥦🦡🌿🦡🌿🦡',
		},
		Messages = {
			MSG_CONNECTING = 'You are being connected [{QUEUE_NUM}/{QUEUE_MAX}]: ',
			MSG_CONNECTED = 'You are up! You are being connected now :)'
		}
	}
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	['1'] = 500, -- Discord User 
	['1'] = 400, -- Donator 
	['1'] = 300, -- Trial Mod 
	['1'] = 200, -- Mod 
	['1'] = 100, -- Admin 
	['1'] = 1, -- Management
}
1 Like

I made a pull request for you to use fxmanifest instead of __resource :slight_smile:

I loved this idea, very useful.

Thank you, enjoy!

Can you update your fork to my most latest version? Thank you.

sure thing

Just did it

Merged! Thank you!

No problem. Would love to collaborate on a script later!

Fixed formatting of the fxmanifest.lua and added links to forum in it as well (PR submitted, although you probably already know that)

Question why did you change it from adamant to bodacious?

Thank you!

bodacious is the latest version (I noted this in the commit info I believe)

Thanks for taking my suggestions on board man! its awesome
Would there be an ability for general users without a queue priority to receive a certain message eg: “you are in the standard join the emergency services department for priority access”

And for those with the queue to receive a specific message such as “Welcome officer we have put you in front of the queue”

Once again amazing release boss!