toggle Command

This command toggles a convar between on and off (0 and 1), or steps it through a list of values.

Game
CS2 + CSGO
Scope
Global
Cheats
Not Required

Command Arguments

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

<Command>

StringRequired

The target command or convar that you want to toggle.

[Values]

StringOptional

If no values are specified, the command will toggle between 0 and 1. Provide a space-separated list of values to cycle through (e.g. "0 1 2 3").

Command Builder

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

0 / 1 required arguments filled

Generated Command

toggle <Command>

Command Information

Learn more about how to use toggle 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.