[Release] Discord Whitelist - Whitelist/Blacklist Based on Roles [4.0]

I found a possible bug? When one role is responsible for whitelist players can connect to the server without any problem. However, when I choose more roles, none of them works. More than one role checking not working for me.

Hi there! I have a question. If I already have a bot programmed … do I have to make a new one for the DiscordWhitelist?

is there any solution for people just seemingly bypassing the whitelist? Theres a few people that manage to get on the server without the required role.

image
image

Not letting me load in after it found discord id

Make sure it’s all set up correctly

I can still get on my server. However, I have some weird error message. Do you know how can I fix this ?

Hello, i got problem with this add-ons, yea its working fine. but 1st attempt connect result to “You are not whitelisted” but if you will do a 2nd attempt connect the permission works. is there anything i can do to get rid of the problem on 1st attempt ? , everytime we close our fivem client and connect and the 1st attempt error will appear again

Hello i’m having trouble on this script.

I exactly download and followed everything need, my discord bot is online.
But the script always said “You must have Discord open to join this server”

Im using OneSync

Discord Perms config

Config = {
DiscordToken = “xxxxxxxxxxxxxxxxxxxxxxxx.GHwC-QIKrJ1SvzdGrvh3c4dD3bQ”,
GuildId = “xxxxx897972402xxxx”,

– Format: [“Role Nickname”] = “Role ID” You can get role id by doing @RoleName
Roles = {
[“Whitelisted”] = “618937911827xxxxxx” – This would be checked by doing exports.discord_perms:IsRolePresent(user, “TestRole”)
}
}

Discord Whitelist config

— Config —
notWhitelisted = “You are not whitelisted for this server.” – Message displayed when they are not whitelist with the role
noDiscord = “You must have Discord open to join this server.” – Message displayed when discord is not found

roles = { – Role nickname(s) needed to pass the whitelist
“Whitelisted”,
“Role2”,
“Role3”,
}

bump!

I am having the same issue bruv.

Check the OP. It actually tell you about the issue.

Nah everything was working okay. The problem was I forgot to remove sv_lan 1 from my server.cfg. @FAXES
Everything working now! Great resource!

1 Like

@FAXES it’s saying I’m not whitelisted however I have the whitelisted role and everything types out correctly…

Take a look at the disclaimer on the topic.

Ahhh thank you so much

Everything is working, but there’s one person that can’t join the server because it says he’s not whitelisted even though I already put him in the whitelisted role.

Yes, everyone else who has the whitelisted role is able to join except that 1 person. ( He’s not VAC banned either )

I can join if i do the whitelisted role but if I add a role like owner and staff in the same way I can’t join without the whitelisted role…

Re read the error. It’s not even this resource causing it. More it’s dependence. Looks like you didn’t close the table.