CS2 & CS:GO toggle Command

CS:GO & CS2 Compatible
toggle <Command> <Values>

The command will toggle a convar on and off (between 0 and 1), or cycle it through its values.

Argument Information

The syntax for this command is as follows:
Name Description
Command

The command (convar) you wish to toggle.

Values

Optional. If you don't specify any values here, the command will be toggled between 0 and 1. Specify a list of values to toggle through, separated by spaces (e.g. "0 1 2 3" without quotes).

Extra Information

Find additional information relating to this command below.
sv_cheats Required
No
Client or Server Command
Both
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

toggle <Command>
0/1 arguments filled
Command
Values
Click to Enable

toggle Examples

toggle voice_enable

This command would toggle voice_enable to 0 if it was set to 1 or 1 if it was set to 0 - i.e. it would toggle voice on and off.

toggle bot_difficulty 0 1 2 3

This command would toggle bot_difficulty through the values 0, 1, 2 and 3. Each time you type the command it would cycle to the next value - i.e. if bot_difficulty was 2 and you typed the command, bot difficulty would be set to 3, etc.