Skip to content
/SLASHPLAY

How to bind a toggle key in CS2

Type bind f4 "toggle cl_radar_scale 0.3 0.6" in your game console so F4 switches the radar zoom between 0.3 and 0.6.

toggle

Switches a setting between 0 and 1, or cycles it through the values you list.

toggle <setting> [value1 value2 ...]

Examples

bind f4 "toggle cl_radar_scale 0.3 0.6"

Switch the radar zoom with one key.

toggle cl_showfps

Turn the FPS counter on or off.

Arguments

settingRequired
Name of the setting to change.
valuesOptional
Values to cycle through in order.

What it does

With just a setting name it flips the value on and off. Give it a list of values and each run moves to the next one, which makes it the easiest way to bind a key that cycles options.

The game's own description: Toggles specified convar value on and off.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to game/csgo/cfg/server.cfg. New to this? Start a CS2 server first.

Your own
CS2 server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.