Badger Docs
Search…
DiscordPedPerms
Version 1.0

Badger's Discord Community

What is it?

Another discord script, yes, you're all welcome!
This one restricts peds to certain discord groups much like my other scripts
Forgive my typing mistakes in the gif please... Thanks
You must set up IllusiveTea's discord_perms script for this to work properly. --> https://forum.cfx.re/t/discord-roles-for-permissions-im-creative-i-know/233805

How it works

Find the following within your server.lua and replace the 1s in here with discord role IDs:
1
roleList = {
2
1, -- Trusted Civ (1)
3
1, -- Donator (2)
4
1, -- Personal (3)
5
}
Copied!
responds to it's respective number within the other list (which will be located in the client.lua):
1
restrictedPeds = {
2
{}, -- Trusted Civ (1)
3
{}, -- Donator (2)
4
{
5
"mickeymouse",
6
"deadpool",
7
"kermit",
8
"blackpanther",
9
}, -- Personal (3)
10
}
Copied!
Therefore blackpanther, deadpool, and kermit would be restricted to be used by the roleList group 'Personal'
It's quite simple :)

Download

Last modified 10mo ago