BindToggle<Bind Key><"Bind Command">

This command maps a hotkey (keyboard key or mouse button) to cycle through the different values of a specified console command each time it is pressed or clicked, useful for creating toggles; for example, \"voice_enable\" would switch between 0 and 1 (disabled and enabled).

CategoryBinds
GameCSGO Only
ScopeGlobal
CheatsNot Required

Arguments

These are the parameters BindToggle uses when it is ran. Required arguments must be provided.

<Bind Key>

StringRequired

The key you wish to bind your toggle command to.

<"Bind Command">

StringRequired

The console command to attach to the hotkey; enter it without any trailing numbers or values.

Command Builder

This interactive command builder generates a valid BindToggle command for in-game use. Fill all required fields.

0 / 2 required arguments filled

Output Command

BindToggle <Bind Key> <"Bind Command">

Command Information

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