like i made it where only one role was in discord_perms and DiscordWhitelist and it started working and that was all i changed… another dev told me the roles export thing was messed up where only one role will work or it wont work idk why but im trying to have a Police Menu implemented with the roles so that Policeaccess role Can change the AOP using your script for aop (i got an error with that too) and then PoliceMenu With the Cuff,put in vehicle etc
It most likely broke with multiple roles as you did not format the table correctly. Make sure there’s commas at the end of each table line. Take a look at the below link for more on that.
Hi, i’m trying to get those two roles working for whitelist, but actually it’s only working when using only one role, i’am currently unable to make it work, any leads ? Thanks!
The resource discord_perms
is
- Not installed
- Not named
discord_perms
I Has an error causing it to crash during its start up.
im having this error always and i install it correctly
for most of the players i tested also by closing discord and fivem the same issue
Not an error from this resource. Check up in that resources topic
its from this script check
Error resuming coroutine: citizen:/scripting/lua/scheduler.lua:720: An error happened while calling export IsRolePresent of resource discord_perms (citizen:/scripting/lua/scheduler.lua:88: @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:341: in function <citizen:/scripting/lua/scheduler.lua:340>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:340: in function <citizen:/scripting/lua/scheduler.lua:339>), see above for details
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:720: in method 'IsRolePresent'
@DiscordWhitelist/server.lua:29: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:169: in function <citizen:/scripting/lua/scheduler.lua:168>
discord_perms is not my resource…
Yes, cause it’s handled in my resource. However;
An error happened while calling export IsRolePresent of resource discord_perms
Make sure the dependant resource is set up correctly.
See the disclaimer in the OP.
How to check??
Is there a way to use the Discord_Perms in any resource
So i’ve installed it and made sure to follow the youtube link , but when loading into the server it takes forever to load and doesn’t load. when doing this i didnt make a new role but rather use one thats already in the discord would that affect anything ?
Can’t really. Restart discord and/or FiveM. See this disclaimer in the OP.
I cannot get past handshaking with server, I’ve double and triple checked the ids but cannot find what the issue is. I’ve found that this resource is the one that is causing the hitch on the server. If someone could point out the issue it would be very much appreciated. (Discord perms is above whitelist in the server.cfg and in the actual config, the discord token is the actual token)
Discord perms config: https://pastebin.com/YLjSkDAW
Discord whitelist server.lua: https://pastebin.com/Tv99qy9b
solved