CS2 Console Commands

Below is CSDB's searchable list of all CS2 console commands. Each command in our database has in-depth insights on each command, with help and argument details (simply hover over a command to view).

mp_backup_round_file_last

CS2 and CSGO

Command

mp_backup_round_file_last

Prints the filename of the most recent saved round backup.

Command Details

mp_backup_round_file_pattern

CS2 and CSGO

Command

mp_backup_round_file_pattern

<Name>

Use this command to set the naming format for backup files. Refer to the option details for available variables you can include.

Command Details

mp_bot_ai_bt

CS2 Only

Command

mp_bot_ai_bt

<Behavior Tree File>

Set the behavior tree file that controls how bots act in the game.

Command Details

mp_bot_ai_bt_clear_cache

CS2 Only

Command

mp_bot_ai_bt_clear_cache

Clears the cache of behavior tree files to update AI behavior scripts without restarting the game.

Command Details

mp_buy_allow_grenades

CS2 and CSGO

Command

mp_buy_allow_grenades

<0 / 1>

Controls whether players can buy any type of grenade from the buy menu. Set to 1 to allow (default), or 0 to prevent grenade purchases.

Command Details

mp_buy_allow_guns

CS2 and CSGO

Command

mp_buy_allow_guns

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

Set what types of guns players can buy on your server.

Command Details

mp_buy_anywhere

CS2 and CSGO

Command

mp_buy_anywhere

<0 / 1 / 2 / 3>

Set whether players can access the buy menu outside the buyzone during the buy time. Players must still be within the purchase time limit, which can be adjusted with mp_buytime.

Command Details

mp_buy_during_immunity

CS2 and CSGO

Command

mp_buy_during_immunity

<0 / 1 / 2 / 3>

Allows players to buy weapons and equipment while immune, even outside the normal buy time. Commonly used in deathmatch servers.

Command Details

mp_buytime

CS2 and CSGO

Command

mp_buytime

<Seconds>

Sets how many seconds players have to buy items after the round starts, following the initial round countdown.

Command Details

mp_c4_cannot_be_defused

CS2 and CSGO

Command

mp_c4_cannot_be_defused

<0 / 1>

Set whether the planted C4 can be defused. Enable to prevent defusing, disable to allow it as usual.

Command Details