> For the complete documentation index, see [llms.txt](https://docs.badger.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.badger.store/fivem-discord-scripts/discordweaponperms.md).

# 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

[![Developer Discord](https://discordapp.com/api/guilds/597445834153525298/widget.png?style=banner4)](https://discord.com/invite/WjB5VFz)

## **Requirements**

{% embed url="<https://github.com/JaredScar/Badger_Discord_API>" %}

## **How it works**

Find the following within your server.lua and replace the 1s in here with discord role IDs:

```
roleList = {
1, -- Trusted Civ (1)
1, -- Donator (2)
1, -- Personal (3)
}
```

responds to it's respective number within the other list (which will be located in the client.lua):

```
restrictedWeapons = {
{}, -- Trusted Civ (1)
{}, -- Donator (2)
{
"WEAPON_RPG",
}, -- Personal (3)
}
```

The RPG weapon would then be restricted to only people with personal discord role within your discord server.

It's quite simple **:)**

## **Download**

&#x20;[DiscordWeaponPerms](https://github.com/TheWolfBadger/DiscordWeaponPerms)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.badger.store/fivem-discord-scripts/discordweaponperms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
