[RELEASE] Bad-DiscordQueue (AdaptiveCards implementation) [PAID]

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.

Dependencies

Screenshots

Without QueueListEnabled

With QueueListEnabled

Configuration

Config = {
	Default_Prio = 500000, -- This is the default priority value if a discord isn't found
	Default_Role_Name = "Default |",
	AllowedPerTick = 1, -- How many players should we allow to connect at a time?
	CheckForGhostUsers = 40, -- How many seconds should the script check for ghosts users in the queue?
	HostDisplayQueue = true,
	onlyActiveWhenFull = false,
	Requirements = { -- A player must have the identifier to be allowed into the server
		Discord = true,
		Steam = true
	},
	WhitelistRequired = false, -- If this option is set to true, a player must have a role in Config.Rankings to be allowed into the server
	Debug = true,
	Webhook = '',
	Displays = {
		Prefix = '[BadgerDiscordQueue]',
		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 :)',
			MSG_DISCORD_REQUIRED = 'Your Discord was not detected... You are required to have Discord to play on this server...',
			MSG_STEAM_REQUIRED = 'Your Steam was not detected... You are required to have Steam to play on this server...',
			MSG_NOT_WHITELISTED = 'You do not have a Discord role whitelisted for this server... You are not whitelisted.',
		},
	},
}

-- COLORS: Red, Blue, Black, Yellow, White, Green, Gray
Config.Card = {
	TitleColor = 'Red',
	Header_Images = {
		'https://www.trackyserver.com/user_data/server_banners/fd8a8d410fd1c358213cc6b5334a8089.webp',
		'https://www.trackyserver.com/user_data/server_banners/b482af26450a383100658da78b943615.webp',
		'https://www.trackyserver.com/user_data/server_banners/363e1f03ed9bfa4e1ba9116d3e5483fa.webp',
	},
	Heading2 = {
		'Waiting to get into the server...',
		'Waiting is fun, right?',
		'You should read the rules on our Discord :)',
		'Have fun RPing on the server!',
	},
	Heading2Color = 'White',
	QueueListEnabled = true, 
	QueueListSlots = 5, -- How many players should we show in the queue list?
	QueueListTitleColor = 'Black',
	QueueListColor = 'Black',
	MessageColor = 'White',
	Heading4 = 'Check out our Discord and Website below',
	Heading4Color = 'White',
	Discord_Link = '',
	Website_Link = '',
}

Config.Rankings = {
	-- LOWER NUMBER === HIGHER PRIORITY 
	-- ['roleID'] = {rolePriority, connectQueueMessage},
	['Member'] = {500, "You are being connected (you are not as special as Badger) [{QUEUE_NUM}/{QUEUE_MAX}]:", 'Discord Member |'}, -- Discord User 
	['Staff'] = {100, "You are being connected (Staff Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:", 'Staff |'}, -- Staff 
	['Admin'] = {50, "You are being connected (Admin Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:", 'Admin |'}, -- Admin
	['Founder'] = {1, "You are being connected (Founder Queue) [{QUEUE_NUM}/{QUEUE_MAX}]:", 'Founder |'}, -- Founder
}

Purchase

https://collectivem.tebex.io/package/4214041

3 Likes

This is a reminder.
Please keep all discussions on topic, concerns about paid topics can be directed to the moderator team directly or on another topic.

If you have questions about the Tebex system or with the resource being illegitimate, stolen, copied or something else please flag it and explain to the moderator team. Thank you.

2 Likes

Will this deny people access if they dont have a set role on the discord?

No, it allows them in, but they’d have the lowest queue priority. They’d have Default_Prio as their priority in the config file.

is there any way to make is so they cant join unless they have certain roles?

You could potentially use this in conjunction with this script:

Both scripts require Badger_Discord_API

Damn… look sick! Will deff buy :wink:

1 Like

Thanks!

1 Like

Didn’t you free release this? What’s the difference?

AdaptiveCards. The other one does not include this feature

Did any functionality get updated or is it basically the same ?

I am possibly going to add reserved slots to this as well. The only thing that got changed was this uses cleaner AdaptiveCards instead of changing Discord Emoji patterns.

Cool, thanks.

1 Like

Badger Always the Goat

2 Likes

Has this been tested on full servers? Or servers that often have pretty congested queues.

Badger back with another dope resource. (Or in this case, an AdaptiveCards implementation to an already dope Badger resource!)
I will definitely be checking this out after I get paid!

1 Like

This is the method used in here.

I was trying to add this myself, the only thing not working was the “Click” to open up links.

Great script :slight_smile:

1 Like

Sadly I do not have a huge server or server population in FiveM. I tested it with 3 others who are in my support community. Still may be some bugs with the queue part of both this and the free resource. Luckily, as I am informed about them, I work on them pretty quickly. This will see the same updates the free resource gets (as well as other possible features, like reserve slots for reserving slots for staff members)

Implemented some more bug fixes. Also added some more useful webhook messages!

May be doing a Christmas sale on the 25th for 15% off! Let me know if any of you would be interested in that!

1 Like