FAXES
February 2, 2019, 11:00pm
1
Created by: FAXES
Hate updating those ACE Permission white-lists? Well just use Discord! So keep white-lists easy and breezy. This script checks the connecting players Discord roles and checks whether they have the specified role.
Features:
Whitelist users based on their roles
Blacklist users based on roles
Debugging options for users and server admins
Multiple role support
No third party resource required
Download:
Installation
The installation page has moved to a better location - Discord Whitelist Installation - FAXES Documentation
If you have any issues or comments please put them below.
85 Likes
Thanks for the few million tags
4 Likes
hallux
February 2, 2019, 11:01pm
3
So if I’m understanding correctly, this is @sadboilogan script?
... Snailsome.
I’m being sarcastic…btw, cute release.
2 Likes
NJSRP
February 2, 2019, 11:02pm
4
No i think it is faxes script that requires @sadboilogan 's script
3 Likes
FAXES
February 2, 2019, 11:02pm
5
Uses his script for the exported functions.
3 Likes
So, @FAXES used @IllusiveTea ’s resource for the exporterinos
zee
February 2, 2019, 11:05pm
8
Really don’t feel like making a PR for this, but:
--- Code ---
AddEventHandler("playerConnecting", function(name, setCallback, deferrals)
local src = source
deferrals.defer()
deferrals.update("Checking Permissions")
for k, v in ipairs(GetPlayerIdentifiers(src)) do
if string.sub(v, 1, string.len("discord:")) == "discord:" then
identifierDiscord = v
end
end
if identifierDiscord then
for i = 1, #roles do
if exports.discord_perms:IsRolePresent(src, roles[i]) then
deferrals.done()
else
deferrals.done(notWhitelisted)
end
end
is only checking if they have member instead of roleNeeded
.
2 Likes
FAXES
February 2, 2019, 11:06pm
9
shit. Welp lemme fix that one
When you can’t make configs
2 Likes
Nice cant wait to test this
1 Like
RageYT
February 2, 2019, 11:53pm
14
No problem, loving the work as well
1 Like
ifne
February 3, 2019, 1:09am
16
iam stuck here -
any idea what i did wrong?
FAXES
February 3, 2019, 1:11am
17
Should work fine unless its modified, and without knowing what you did its hard to say
4 Likes
ifne
February 3, 2019, 1:23am
18
how long does it take to check please,
1 Like
ifne
February 3, 2019, 1:38am
20
hi again,
iam getting this
when i have this ticked
and this in the setttings
can you point me in the correct direction please.
cheers
1 Like
Slavko
February 3, 2019, 1:47am
21
IF YOU ARE HAVING PROBLEMS PLEASE READ THE FOLLOWING
Ensure you have the discord_perms
resource named correctly and loaded before the DiscordWhitelist
resource.
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
: discord_perms/discord_perms/config.lua at master · logan-mcgee/discord_perms · GitHub
How to generate a discord bot token:
How to get your discord guild’s guild id:
Open Discord
Right Click on the Server Icon you want the Guild ID for
Click Copy ID
Paste this inside the configuration for GuildId
.
2 Likes
FAXES
February 3, 2019, 1:50am
22
Yes make sure you have discord_perms configured correctly.
1 Like