Badger Docs
Search…
DiscordWeaponPerms

Version 1.0

Another discord script of course! With this script, you can restrict weapons to certain roles on your discord server! This script also allows restricting certain attachments to different groups as well (however, it'll remove the weapon if they have the attachment, I'll eventually update it to just remove the attachment from the weapon).

Badger's Discord Community

Requirements

GitHub - JaredScar/Badger_Discord_API: A FiveM API Script [created by Badger]
GitHub

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
restrictedWeapons = {
2
{}, -- Trusted Civ (1)
3
{}, -- Donator (2)
4
{
5
"WEAPON_RPG",
6
}, -- Personal (3)
7
}
Copied!
The RPG weapon would then be restricted to only people with personal discord role within your discord server.
It's quite simple :)

Download

Last modified 10mo ago