This doesnt seem to be working for me. All your other Discord related addons i use work fine, including chat roles and ace perms, but this one, just dont work
Well i have whitelisted staff peds to some staff roles, for example the ‘management team’ ped i have restricted to the ‘@Management Team’ role however everyone can still use it
Would you be able to help me set this up? I keep having issues, Im trying to use your discord scripts (Nearly all of them) And i can´t seem to get any of them working, Can i contact you privately so i dont have to post on 4 of your addons :s?
@OfficialBadger I also cannot get the script to work after multiple attempts. I also use your DiscordVehicleRestrict with no problem but this script isn’t work at all.
The only output I’m getting on the console from this script is the following:
roles[i] 544366177036533790 equal to roleList[j] 600764201287417971 ?
roles[i] 544366177036533790 equal to roleList[j] 600764204127092746 ?
roles[i] 544366177036533790 equal to roleList[j] 600764084291371041 ?
roles[i] 544366177036533790 equal to roleList[j] 600764197244239892 ?
The 544366177036533790 is a role that’s not even part of the roleList nor part of the Discord Perms.
What’s not working about it? Works fine on my test server. Make sure you got the role IDs correctly. A lot of times people mess these up with message IDs rather than role IDs. Also, that output was a debug message I forgot to get rid of. It prints out a role not even in roleList because it is comparing every role a user has to every element in the roleList.
I’ve double checked everything and it’s not restricting the peds when spawned via vMenu. I’ve only added the peds and roles to the resource as listed above. I have several discord plugins on my server and this is the only one that doesn’t work.
What is your roleList looking like? Also, I’d make sure you aren’t missing parenthesis anywhere since you could have a lua parsing error if you miss a comma or quotation mark
I’m not getting any Lua errors. I’ve tried using the role names, the role ID’s and nothing works. I’ve tried multiple combinations including clearing cache, rebooting the server, respawning, reconnecting etc. Nothing works. My discord_perms works correctly with the DiscordVehicleRestrict and other discord resources.