keepcalculator

06 Numbers and Powers

Gmod Open Console: How to Open & Use It

Card No. 06·12299 · Updated · Standard formula, shown below

To open the console in Garry’s Mod (Gmod), press the tilde key (~) or the grave accent key (`), located directly below the Escape key on most keyboards. If nothing appears, you need to enable the developer console in the game’s settings first. This article explains exactly how to do that, what the console is used for, and how to fix common issues.

What Is the Gmod Console?

The console is a developer tool built into the Source engine, which Gmod runs on. It allows you to type text commands that control the game directly. You can change graphics settings, spawn objects, adjust physics, run server commands, and even execute complex scripts. Almost everything you can do through the game’s menus can also be done through the console, often with more precise control.

The console is especially important for server administrators and modders. For example, a server owner might use the console to ban a disruptive player, change the map, or set a custom gravity value. A single-player player might use it to spawn a specific weapon or entity without having to browse through the spawn menu.

How to Enable the Console in Gmod

By default, the console is disabled. You must enable it in the options menu before the tilde key will work. Here are the exact steps:

  1. Launch Garry’s Mod and go to the main menu.
  2. Click on Options.
  3. Select the Keyboard tab.
  4. Click the Advanced button at the bottom of the screen.
  5. Check the box labeled Enable Developer Console.
  6. Click OK and then Apply.

After doing this, pressing the tilde key (~) should open the console overlay at the top of your screen. If it still doesn’t work, check that your keyboard layout puts the tilde key in the expected position. On some non-US keyboards, the key might be labeled differently, but it is usually still the key to the left of the number 1.

Common Ways to Open the Console

Besides the tilde key, there are a few other methods you can use to open the console:

  • Default key: ~ or ` (same key).
  • Binding a key: You can bind any key to open the console by typing bind "F10" "toggleconsole" in the console itself (after you’ve opened it once) or in an autoexec.cfg file.
  • Using the launch option: If you want the console to open automatically when the game starts, add -console to the game’s launch options in Steam.

The toggleconsole command is the internal command that opens and closes the console. Binding it to a different key is useful if your tilde key is broken or hard to reach.

What Can You Do With the Console?

The console gives you access to hundreds of commands. Here are a few examples of what you can type:

  • sv_cheats 1 – Enables cheat commands in single-player mode.
  • noclip – Toggles flying mode (requires sv_cheats 1).
  • god – Makes you invincible (requires sv_cheats 1).
  • give weapon_crowbar – Gives you a specific weapon.
  • changelevel gm_construct – Changes the map.
  • fps_max 60 – Limits the frame rate.
  • cl_showfps 1 – Displays your current FPS.
  • ent_fire !self kill – Kills the entity you are looking at (useful for map editing).

You can also use the console to view error messages, check server status, and manage addons. If you’re a server owner, you can use it to kick or ban players, change server settings, and run admin commands.

Why Won’t the Console Open? (Troubleshooting)

If you’ve enabled the console and pressed the tilde key but nothing happens, try these fixes:

  • Check your keyboard layout: On some European keyboards, the key next to 1 is ² or §. You may need to press that key instead, or bind another key.
  • Verify the setting saved: Sometimes the game doesn’t save the option if you don’t click Apply. Go back and double-check.
  • Use a different key: Open the console once using the method above, then type bind "/" "toggleconsole" to bind the slash key.
  • Check for conflicting addons: A mod might be overriding the console key. Try disabling all addons and test again.
  • Reinstall the game files: If nothing works, verify the integrity of game files through Steam. This can fix corrupted config files.

Remember that the console only opens in the game, not in the main menu. If you’re at the main menu, the console may not appear until you join a game or start a single-player session.

Console vs. Chat: What’s the Difference?

Many new players confuse the console with the chat box. The chat box is opened with Y (team chat) or U (global chat) and is used to send messages to other players. The console is a separate, developer-oriented interface that shows system messages and accepts commands. You cannot talk to other players through the console, and you cannot run commands through the chat box (unless you have a mod that allows it).

If you see a text box that appears at the bottom left of your screen, that’s the chat. The console appears as a large overlay at the top of the screen, usually covering the upper half of your display. It shows a history of commands and system output, and has a text input field at the bottom of the overlay.

Is Using the Console Safe?

Yes, using the console is completely safe in single-player mode. You can’t permanently break your game by typing commands; the worst that happens is you might crash the game or make it unplayable until you restart. In multiplayer, some commands are restricted by the server, and using cheats on a server that doesn’t allow them will get you kicked or banned. Always follow the server’s rules.

One thing to be careful about: never copy and paste commands from unknown sources. Some malicious commands can alter your game files or install harmful scripts. Stick to commands you understand or that you find on reputable Gmod wiki pages.

Frequently Asked Questions

Why is my console not opening even after I enabled it?

This usually happens because the tilde key on your keyboard is not actually the key the game expects. Try pressing every key near the top-left corner of your keyboard, or bind a different key using the method described above. Also make sure you’ve clicked Apply in the settings.

Can I open the console while in a multiplayer server?

Yes, you can open the console on any server, but many commands will be blocked by the server’s settings. Commands like sv_cheats won’t work unless the server has them enabled. You can still use the console to view server information and adjust your client-side settings.

How do I make the console open automatically when I start Gmod?

Right-click Gmod in Steam, select Properties, then Launch Options, and type -console. This will open the console as soon as the game launches, before you even reach the main menu.

What is the best console command for spawning items?

The command is give followed by the item’s classname. For example, give weapon_physcannon gives you the gravity gun. You can find a full list of classnames on the Gmod wiki. Remember to enable sv_cheats 1 first.

Can I use the console to fix lag?

Yes, you can lower your graphics settings with commands like mat_quality 0 or r_lod 0, and you can limit your FPS with fps_max. However, lag in multiplayer is often caused by the server or your internet connection, which the console can’t fix.

Is there a way to clear the console?

Type clear into the console and press Enter. This will clear all the text from the console window, giving you a fresh start.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →