toggle Command

Explore usage, syntax, and examples for the toggle CS2 developer console command.

toggle

CS2 and CSGO

Command

toggle

<Command><Values>

Toggle a console variable (convar) on or off (between 0 and 1), or cycle through a specified list of values.

<Command>

The convar you want to toggle.

<Values> (Optional)

Optional. List of values to cycle through, separated by spaces (e.g., "0 1 2 3"). If omitted, toggles between 0 and 1.

sv_cheats Required

No

Client or Server Command

Client

Server

toggle Generator

Command

toggle

<Command>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

toggle Examples

Command

toggle

voice_enable

Toggle voice_enable between 0 and 1, effectively turning voice chat off and on.

Command

toggle

0bot_difficulty

Cycle bot_difficulty through 0, 1, 2, and 3. Each use sets it to the next value.