mp_buy_allow_guns Command

This console command modifies server rules that determine which weapon types players are allowed to buy.

Category
Gameplay
Game
CS2 + CSGO
Scope
Global
Cheats
Not Required

Command Arguments

These are the parameters mp_buy_allow_guns uses. Required arguments must be provided for the command to work.

<1 / 2 / 4 / 8 / 16 / 32 / 255>

EnumRequired

Provide 1 after the command to restrict players to pistols only. Provide 2 to restrict players to SMGs only. Provide 4 to restrict players to rifles only. Provide 8 to restrict players to shotguns only. Provide 16 to restrict players to sniper rifles only. Provide 32 to restrict players to heavy machine guns (e.g. the negev.) Provide 255 to allow players to purchase any weapon which is the default.

Allowed: 1, 2, 4, 8, 16, 32, 255
Default: 255

Command Builder

Interactive command builder that generates a valid mp_buy_allow_guns command for in-game use.

All required arguments filled!

Generated Command

mp_buy_allow_guns 255

Command Information

Learn more about how to use mp_buy_allow_guns effectively.

Argument Data Types

Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.

Required Arguments

Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.

Command Scope

Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.

Cheats Required

Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.