Enable the developer console:
Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".
Press ` or ~ on your keyboard.
Enter a command and hit ENTER on your keyboard to run it!
Commands List
Command | Description | More | Syntax |
---|---|---|---|
gameui_hide | This command will close the game UI (pause menu), provided it is open. |
Examples, Generator & More | gameui_hide
|
g_debug_angularsensor | g_debug_angularsensor
|
||
g_debug_constraint_sounds | g_debug_constraint_sounds
|
||
g_debug_ragdoll_visualize | g_debug_ragdoll_visualize
|
||
givecurrentammo | This command will top up your ammo to its maximum level for the weapons you currently have. |
Examples, Generator & More | givecurrentammo
|
gl_clear_gray | This command clears the back buffer to gray every frame when enabled. Primarily used for debugging purposes, it overwrites the screen with a gray color to help identify visual issues. |
Examples, Generator & More | gl_clear_gray
<0 / 1>
|
gl_clear_randomcolor | This command will clear the back buffer to random colors every frame. This is useful for debugging, to spot open seams in geometry. |
Examples, Generator & More | gl_clear_randomcolor
|
global_set | This command will set the state of the specified global variable. See argument information for help with state types. |
Examples, Generator & More | global_set
<Variable Name><0 / 1 / 2>
|
glow_outline_width | This command will set the width of glow outline effects, if they are enabled. |
Examples, Generator & More | glow_outline_width
<Width>
|
god | This command will toggle god mode. In god mode, your player will not be able to take damage and will never die. |
Examples, Generator & More | god
|
gotv_theater_container | gotv_theater_container
|
||
grep | The 'grep' command is not directly associated with Counter-Strike 2 gameplay or configurations. In general context, 'grep' is a command-line utility for searching plain-text data sets for lines that match a regular expression. It seems there's been a misunderstanding in the command's application context. |
Examples, Generator & More | grep
|
healthshot_allow_use_at_full | This command, if set to 1 (default) will allow players to use healthshots when already at maximum health. Set to 0 to disallow. |
Examples, Generator & More | healthshot_allow_use_at_full
<0 / 1>
|
healthshot_health | This command sets the amount of health that a healthshot heals. |
Examples, Generator & More | healthshot_health
<Amount>
|
healthshot_healthboost_damage_multiplier | This command sets the damage multiplier for damage dealt by a player after having consumed a healthshot. The damage they deal will be multiplied by this number. The amount of time this applies for is set by the healthshot_healthboost_time cvar. Default is 1 (disabled). |
Examples, Generator & More | healthshot_healthboost_damage_multiplier
<Multiplier>
|
healthshot_healthboost_speed_multiplier | This command sets the speed multiplier for a player after having consumed a healthshot. Their movement speed will by multiplied by this number. The amount of time this applies for is set by the healthshot_healthboost_time cvar. Default is 1 (disabled). |
Examples, Generator & More | healthshot_healthboost_speed_multiplier
<Multiplier>
|
healthshot_healthboost_time | This command sets the amount of time, in seconds, that a player receives healthboost for after consuming a healthshot. This is also the amount of time that the damage and speed multipliers will have an effect for. |
Examples, Generator & More | healthshot_healthboost_time
<Seconds>
|
help | This command will print to console help for the command with the specified name. You need to specify a full command (not just part of the command). |
Examples, Generator & More | help
<Command>
|
hideconsole | This command will hide the console (same as pressing the console key again). |
Examples, Generator & More | hideconsole
|
hidehud | This command, if set to 1 (default) will show the game's HUD. If set to -1, the game's HUD will be hidden. |
Examples, Generator & More | hidehud
<0 / -1>
|