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

fivem-scripts
lua
discord
whitelist
faxes
#1

Discord Whitelist - By FAXES

About
Hate updating those ACE Permission white-lists? Well just use Discord! Now you can 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 cant connect :stuck_out_tongue:
  • Nice and easy :tm:

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

Downloads:

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.

NOTICE… READ IT

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

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

20 Likes

#2

Thanks for the few million tags :slight_smile:

3 Likes

#3

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

... Snailsome.

I’m being sarcastic…btw, cute release.

2 Likes

#4

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

0 Likes

#5

Uses his script for the exported functions.

1 Like

#6

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

0 Likes

#7

Another stolen resource :thinking:

3 Likes

#8

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

is only checking if they have member instead of roleNeeded.

0 Likes

#9

shit. Welp lemme fix that one :smiley:

When you can’t make configs

1 Like

#10

Nice cant wait to test this

0 Likes

#11

fixed

3 Likes

#12

I like this :smiley:

0 Likes

#13

Thanks boi

2 Likes

#14

No problem, loving the work as well :smiley:

0 Likes

#15

This seems nice! Good work FAXES

1 Like

#16

iam stuck here -

image any idea what i did wrong?

0 Likes

#17

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

1 Like

#18

how long does it take to check please,
image

0 Likes

#20

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

0 Likes

#21

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