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
This console command forces all bots on the server to use knives.
Name | Description |
---|---|
0 / 1 |
Enter 1 to only allow bots to use knives, and 0 to turn the command off. Enter mp_restartgame 1 after this command for it to take effect. |
This command lets you borrow music kits from other players in your match by specifying their player slot number.
Name | Description |
---|---|
Player Slot |
The player slot number from which to borrow the music kit. Use -1 to stop borrowing. |
This command adds a dot in the center of your crosshair. If you reduce cl_crosshairsize to 0, you can set it so you only have a dot.
Name | Description |
---|---|
0 / 1 |
Use a 1 after the command to enable a dot crosshair, and a 0 after it to disable the dot. |
This command is used to enable or disable the dynamic Y-axis movement of the kill panel you see during the deathcam.
Name | Description |
---|---|
0 / 1 |
This argument turns the dynamic Y movement of the deathcam's kill panel on or off. |
This command determines if players can hold down the secondary fire button to cycle through zoom levels on scoped weapons.
Name | Description |
---|---|
0 / 1 |
Toggle to enable or disable holding secondary fire to cycle zoom levels. |
This command, when enabled, displays game events in the console or a HUD element, primarily used for debugging or development purposes.
Name | Description |
---|---|
0 / 1 |
Toggles the display of game events. |
This command clears the console output across all views, effectively cleaning up any text or messages that have been displayed.
This command is used to hide the avatar images for other players in the game. It has three settings: off, block all, and block all but friends.
Name | Description |
---|---|
0 / 1 / 2 |
The setting for hiding avatar images: off (0), block all (1), or block all but friends (2). |
If turned on, will ignore in-game invites from recent teammates or other non-friends.
Name | Description |
---|---|
0 / 1 |
Turns the setting on or off. |
Ignores all game invites when the player is in a match if enabled. Allows invites only from the main menu.
Name | Description |
---|---|
0 / 1 |
Choose whether to ignore invites only in the main menu or not. |
This command is used to disable the ability for players to use their sprays in the game.
Name | Description |
---|---|
0 / 1 |
Determines whether player sprays are disabled or enabled. |
This command is used to hide the names and avatars of players that have been muted, enhancing the user's game experience by reducing distractions and potential harassment from muted players.
Name | Description |
---|---|
0 / 1 |
This argument controls whether the names and avatars of muted players are hidden or shown. |
This command is used to replace names of other players with non-offensive placeholders in the game environment.
Name | Description |
---|---|
0 / 1 |
Toggle the sanitization of player names. |
This command allows you to change what key turns mouse selection on while you have the scoreboard open . This is defaulted to +attack2 (usually right-click), and is what lets you use your mouse to click on people's names when you toggle open the scoreboard.
Name | Description |
---|---|
Bind Key |
The key you want to bind to this command. |
This command enables or disables the use of silencers on weapons that support them, like the M4A1-S.
Name | Description |
---|---|
0 / 1 |
Determines whether the silencer mode is enabled (1) or disabled (0). |
Determines whether there is a delay for the sniper rifle to unscope after shooting. Enabling this can simulate a more realistic sniper rifle behavior, where the player cannot instantly unscope after firing.
Name | Description |
---|---|
0 / 1 |
Determines whether the sniper rifles have a delay when unscoping after a shot. |
This command determines whether the new weapon bobbing effect is enabled or disabled in the game.
Name | Description |
---|---|
0 / 1 |
Specifies whether the new weapon bobbing effect is on or off. |
This command sets the threshold at which the game switches from displaying a light wallbang tracer to a heavy wallbang tracer.
Name | Description |
---|---|
Threshold Value |
The numerical value to determine when to switch from light to heavy wallbang tracer. |
This command sets the size of the minimap texture when using the cs_minimap_create command. The default size is 512.
Name | Description |
---|---|
Size |
The size (in pixels) to which the minimap texture will be set. This is a square resolution, so the value is used for both width and height. |
This command, when enabled, forces the game to write to the demo file after every network update, ensuring all data is immediately saved.
Name | Description |
---|---|
0 / 1 |
Whether to flush writing the demo file every network update or not. |