[Release] Discord Whitelist - Whitelist Based on Roles [1.1]

Discord Whitelist - By FAXES

About
Hate updating those ACE Permission white-lists? Well just use Discord! Now you can give thanks to this script, and @IllusiveTea’s. So keep white-lists easy and breezy. This script checks the connecting players Discord roles and checks whether they have the specified role.

In the Download

__resource.lua
License.md
server.lua


Tutorial Setup Video for noobs


Features

  • Discord white-list based on users Discord roles
  • Live updates, so take the role away, they can’t connect :stuck_out_tongue:
  • Multiple role support!
  • Nice and easy :tm:

Requirements
@IllusiveTea’s Discord Role For Permission Script - Ensure that it is the one from the master branch!

Downloads:

Disclaimer

DISCLAIMER!

If you are having the error “Discord Not Open” and/or “Identifier Not Found”, and 1000% know it’s set up right. This is not an ‘issue’ with the script, but rather Discord. Discord interrogation is new and is BETA meaning it will have issues that cannot be solved by myself.

This is a FiveM statement:

We also might end up hitting rate limits, so not all players will be identified even if they are running a discordapp client

Installation
Read Carefully Children

  1. Download this resource and @IllusiveTea’s Discord Role For Permission Script.

  2. Drag and drop both resources into your server

  3. Fill out the config in @IllusiveTea’s Discord Role For Permission Script, make sure to include within the table the role you will use in the whitelist

  4. Edit the server.lua in @FAXES’ resource and add the roles nickname at the top in the config, also configure the messages if you wish.

  5. Add both resources to your server.cfg, making sure @IllusiveTea’s Discord Role For Permission Script is above @FAXES’.


Credits
@IllusiveTea for his creativeness within his script.

If you have any issues or comments please put them below. :left_speech_bubble:

29 Likes

Thanks for the few million tags :slight_smile:

3 Likes

So if I’m understanding correctly, this is @IllusiveTea script? :stuck_out_tongue:

... Snailsome.

I’m being sarcastic…btw, cute release.

2 Likes

No i think it is faxes script that requires @IllusiveTea 's script

Uses his script for the exported functions.

2 Likes

So, @FAXES used @IllusiveTea’s resource for the exporterinos

Another stolen resource :thinking:

4 Likes

Really don’t feel like making a PR for this, but:

is only checking if they have member instead of roleNeeded.

shit. Welp lemme fix that one :smiley:

When you can’t make configs

2 Likes

Nice cant wait to test this

fixed

3 Likes

I like this :smiley:

1 Like

Thanks boi

3 Likes

No problem, loving the work as well :smiley:

This seems nice! Good work FAXES

1 Like

iam stuck here -

image any idea what i did wrong?

Should work fine unless its modified, and without knowing what you did its hard to say

2 Likes

how long does it take to check please,
image

hi again,
iam getting this
image
when i have this ticked
image
and this in the setttings


image

can you point me in the correct direction please.

cheers

IF YOU ARE HAVING PROBLEMS PLEASE READ THE FOLLOWING

  1. Ensure you have the discord_perms resource named correctly and loaded before the DiscordWhitelist resource.
  2. You must have the discord_perms resource configured correctly ie; the guild information and bot token. This resource is extremely bare bones and most of the issues are not caused by the actual resource itself but by the dependency.

Configuration for discord_perms: https://github.com/IllusiveTea/discord_perms/blob/master/discord_perms/config.lua

How to generate a discord bot token:

How to get your discord guild’s guild id:

  1. Open Discord
  2. Right Click on the Server Icon you want the Guild ID for
  3. Click Copy ID

Paste this inside the configuration for GuildId.

2 Likes