From GMod Wiki

Jump to: navigation, search

All Source games come with a built in console. The console is very useful for administrating your server, debugging your Lua scripts, or to just mess around with cheats.


Enabling the console

The console isn't always enabled by default. This brief tutorial will explain how.

  1. Click the 'Options' button at the game's main menu.
  2. Select the 'Keyboard' tab.
  3. Click the 'Advanced' button in the 'Keyboard' tab.
  4. Check the "Enable Developer Console (~)" option.
  5. Click 'Ok', and then 'Ok' again.

For non-English keyboard users

Before or after doing the steps above, do the following (can not be done while in-game):

  1. Open your Steam Games list.
  2. Right-click 'Garry's Mod' and select 'Properties'.
  3. Click 'set launch options' in the window that pops up.
  4. In the new window, type in +bind KEY "toggleconsole", where KEY is the key you prefer. F12 is a recommended choice.

Basic Console Operation

You can open the console up any time by pressing the tilde key (~) located at the top left of your keyboard (non-English keyboard users, see above).

Typing a few letters into console will display any commands matching the letters you have typed in. Some commands, such as changelevel will display a list of items related to the command (like a list of maps).

Console Commands

Console Command Category


There are to many to list here, but many other sites have already created a nice list for you.

Commonly used Commands

These are only a few common commands from the above lists.

Garry's Mod

These commands are for Garry's Mod only, and control a variety of aspects related to the game/server.

STool Commands

These commands are to be used with gmod_toolmode, they signify the type of STool. These are relative to a default GMod installation. Tools with capital letters in them (tool_Settings) are usually developer oddities.

Tool Setting Commands

These commands allow you to choose whether a certain tool should be allowed or disallowed

Sandbox Limits

These settings specify limits.

Lua Commands

These are useful for developers and for running lua scripts quickly.

Personal tools
Lua Scripting