Discord roles for permissions (im creative, i know)

Is this the fix for this error?
https://forum.cfx.re/uploads/default/a5310bbbdf156b327b039a7e38bd736f39eb51ce

Thatā€™s a different error

But can you help?

hello can i put more rules ? thx

Alright so Iā€™m actually stressing HARD rn. Iā€™ve been trying to get this to work for 3 hours now and its being a pain in the a$$. I am trying to use this and a Discord Role Vehicle Whitelist script. Bronze will offer a few cars, silver will offer the cars bronze bronze and some more that I have set. Once I have it working I can do Gold and Platinum easily but iā€™m really annoyed right now. I finally got it to the point where it lets me join and isnā€™t erroring but before I couldnt spawn any of the cars whether I had the role or not but now I can spawn all of them without any role. Whitelisted is for a different Discord Whitelist but it does work! Can someone please help me out:

Discord Roles:
DiscordRoles
Discord Perms Config:


Bronze Role:

Bronze Cars:
BronzeCars
Silver Role:

Silver Cars:
SilverCars
Bronze Access = Bronze Role Vehicle Whitelist:
Silver Access = Silver Role Vehicle Whitelist:
VehicleWhitelist

Delete the comma at the end of the Platinum Access line in discord_perms

I have installed this exactly as instructed, and made all of the necessary edits to the files, but it just wonā€™t work. the whitelist works, but even with the listed discord perm I canā€™t spawn the vehicle. I have discord open and iā€™m not getting any error messages, it just doesnā€™t work.

i am getting this error what to do

Await failure: citizen:/scripting/lua/scheduler.lua:770: An error happened while calling export IsRolePresent of resource discord_perms (citizen:/scripting/lua/scheduler.lua:126: @discord_perms/server.lua:77: attempt to concatenate a nil value (field ā€˜dataā€™)
stack traceback:
@discord_perms/server.lua:77: in function ā€˜IsRolePresentā€™
citizen:/scripting/lua/scheduler.lua:391: in function citizen:/scripting/lua/scheduler.lua:390
[C]: in function ā€˜xpcallā€™
citizen:/scripting/lua/scheduler.lua:390: in function citizen:/scripting/lua/scheduler.lua:389), see above for details
stack traceback:
@DiscordWhitelist/server.lua:31: in upvalue ā€˜handlerā€™
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218Sending heartbeat to live-internal.fivem.net:30110

I am also getting this error.

Iā€™m having SEVERAL issues with this. It does not work at all, i did everything the videos say, deleted all server files to restart, and nothing! i see everyone else is having issues, so please fix this ASAP!

Iā€™m not supporting this anymore, discord identifiers and the way i do this system are too unreliable to have it fully functioning. Id reccomend using a bot or an oauth system using the new defferal cards for an effective way of getting user identifiers.

This resource just seems to keep causing more issues than it was intended to solve.

IDK how to do that at all, really liked how simple this script was. What a shame.

Bro the people who cant get it to work, are people not setting it up right. I have used it on 2 or 3 servers and it works perfectly

1 Like

Hey IllusiveTea, Iā€™ve setup the plugin properly (i think). Iā€™ve got our discordā€™s guild ID in and in the server console I can see it finding our discord. Iā€™ve also pasted the role id into the config but our bot shows offline in the discord and Iā€™m using this with the DiscordVehicleWhitelist and when I try to spawn a car it says itā€™s blacklisted and Iā€™ve given myself the role. Not sure if this is an issue with the discord role resource or the whitelist.

Sry if this seems like a stupid question, do I need to code or make a bot for this?

Hi, I donā€™t know what i am doing wrong. I got the bot in the server. (invited manually). But nothing else seems to happen. The bot is offline. I am using the rank sync plugin (DiscordChatRoles [Release]). I get no errors in console either.

Discord Token = My bot token from the developer website on Discord, right?
Guild ID = Right click on my server name on discord and copy ID.

AM I doing something wrong?

Edit seems like I found an error hiding in the logs:

An error occured, please check your config and ensure everything is correct. Error: 403

I regenerated the token as well. Double checked the server ID number. By doing CTRl+F as well. Nothing seems to be incorrect. What is my next step?

edit: ALl good now. It works fine. Thanks for the plugin :slight_smile:

hi

i getting error with discord perms error parsing script @discord_perms/config.lua in resource discord_perms: @discord_perms/config.lua:10: ā€˜}ā€™ expected (to close ā€˜{ā€™ at line 7) near ā€˜[ā€™
resource discord_perms: @discord_perms/server.lua:2: attempt to index a nil value (global ā€˜Configā€™)

stack traceback:

This error is new http://prntscr.com/pg3k1r ok

Iā€™m closing this as Iā€™ve stated previously:

Iā€™m not supporting this anymore, discord identifiers and the way i do this system are too unreliable to have it fully functioning. Id reccomend using a bot or an oauth system using the new defferal cards for an effective way of getting user identifiers.

This resource just seems to keep causing more issues than it was intended to solve.