CS2 reference Server
Syntax
mp_buy_allow_guns [optional value; omit to query]Description
Restrict purchasable weapon classes through a bitmask.
Argument information
| Argument | Documented format | Requirement |
|---|---|---|
| Recorded argument | optional value; omit to query | Detailed schema unavailable |
Extra information
- Category
- Economy
- Context
- Server
- Type
- ConVar
- Reference value
255- Documented values
- 0–255; bit flags: 1 pistols, 2 SMGs, 4 rifles, 8 shotguns, 16 sniper rifles, 32 heavy MGs
- Recorded flags
- release
Examples
mp_buy_allow_gunsHow to use
Open the developer console and enter the example if appropriate for your session. Record the previous value before changing a setting. Server actions require a server you control.