BindToggle [Bind Key] ["Bind Command"]
This command assigns a hotkey (key on your keyboard, or button on your mouse) to switch through the various values a specified console command has (when pressed or clicked). This is useful for setting up binds that toggle a certain feature. For example,"voice_enable" would be toggled between 0 and 1 (disabled and enabled).
Arguments are parameters that you add to a command. Find information about this command's arguments below.
Bind Key | This is the key you want to assign your bind toggle command to. |
"Bind Command" | The console command you want to assign to the hotkey. Be sure to enter it without any numbers/values after it. |
Sv_cheats Required? | No |
Client or Server Command? | Both |
Find below working examples of this command (copy and paste into console).
bindtoggle "j" "sv_infinite_ammo"
This command will bind the J key on your keyboard to the different infinite ammo commands in CS:GO. When sv_cheats 1 is enabled, this command will cause J to switch between giving you unlimited ammo without needing to reload and giving you unlimited ammo that will need to be reloaded each time you empty a magazine.