> For the complete documentation index, see [llms.txt](https://docs.sourcefactory.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcefactory.eu/deathmatch/configuration/weapons-restrict.md).

# Weapons Restrict

{% hint style="warning" %}
`/addons/counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`
{% endhint %}

* You can set weapons restrictions for individual modes.
* If a mode does not contain a specific weapon, you do not need to create a weapon restrict for that mode ID
* You can set values for individual teams or for all.
* Additionally, the restriction is divided into nonVIP and VIP players.
* Weapons restrict does not apply to bots!

#### How to restrict certain weapon ?

* If the weapon is not in your primary/secondary weapons list for current custom mode, you don't need to add that weapon to the restrict.
* You cannot combine Team or All weapons restrict! It must always be set either to **Team** or **All**.
* If you set the value to <mark style="color:red;">`0`</mark>, it means the weapon is not restricted.
* If you set the value to <mark style="color:red;">`-1`</mark>, it means the weapon is fully disabled.
* If `RandomWeapons` are true in a specific custom mode, then all weapons in that custom mode are not restricted.

### Examples:

```json
"weapon_ak47": { //Name of the weapon for which you want to restrict
    "YOUR MODE ID": { //Insert here the ID of the mod in which you want to restrict
        "VIP": { // Restriction for the VIP Players
            "CT": 6,
            "T": 6,
            "Global": 12
        },
        "NonVIP": { // Restriction for the NonVIP Players
            "CT": 5,
            "T": 5,
            "Global": 10
        }
    },
    "0": { // MODE ID
        "VIP": {
            "CT": 6,
            "T": 6,
            "Global": 12
        },
        "NonVIP": {
            "CT": 5,
            "T": 5,
            "Global": 10
        }
    },
    "1": {
        "VIP": {
            "CT": 5,
            "T": 5,
            "Global": 7
        },
        "NonVIP": {
            "CT": 4,
            "T": 4,
            "Global": 5
        }
    }
},
"weapon_awp": { // WEAPON NAME
    "0": { // MODE ID
        "VIP": {
            "CT": 3,
            "T": 3,
            "Global": 4
        },
        "NonVIP": {
            "CT": 2,
            "T": 2,
            "Global": 3
        }
    }
}
```
