Garry's Mod

Garry's Mod

29 ratings
Ultimate Guide to Garry's Mod Console Commands
By Lester
Garry's Mod (GMod) is a sandbox game that offers limitless creativity and customization. One of the most powerful tools at your disposal in GMod is the console, where you can control, manipulate, and enhance your gaming experience through a wide array of commands.

This comprehensive guide aims to provide you with an in-depth understanding of GMod's console commands, offering a detailed walkthrough of their functions, syntax, and best practices. Whether you're a novice looking to explore the game's potential or an experienced player seeking to master the art of GMod's console, this guide has you covered.

From basic commands for enhancing your gameplay to advanced tools for server administration and custom content creation, we'll cover it all. Discover how to modify the game environment, spawn objects and NPCs, fine-tune graphics and performance, and even troubleshoot common issues.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Console Commands: Your GMod Power Tools

Console commands in Garry's Mod are your ticket to full control. They're your keys to modify the game environment, spawn objects, tweak gameplay, and more. Whether you're a newbie or a seasoned player, these commands can elevate your GMod experience.

Accessing the Console

To open the console in GMod, press the tilde key (~) on your keyboard, usually situated just below the escape key. Once the console is open, type in commands and hit "Enter" to execute them. By the way, you can edit this keybind to be any key you wish, and if the console does not open, be sure it is enabled.

This guide is your no-nonsense handbook for GMod console commands. We'll start with the basics and work our way to more advanced commands. Whether you're here for gameplay improvements, server administration, troubleshooting, or content creation, this guide should cover it all.
Section 1: Basic Console Commands
sv_cheats

Description: The sv_cheats command is essential when enabling or disabling cheat commands in your Garry's Mod session. When cheats are enabled with sv_cheats 1, you gain access to a wide range of commands that can affect gameplay, such as enabling god mode, no clipping, and spawning items.

Usage: Open the console and type sv_cheats 1 to enable cheats or sv_cheats 0 to disable them.

help
Description: The help command is your in-game command manual. It provides a list of available commands and a brief description of their functions. It's a handy reference for both beginners and experienced players.

Usage: In the console, simply type help to display a list of available commands, or use help <command> to get information about a specific command.

quit
Description: The quit command is the quickest way to exit Garry's Mod. It allows you to gracefully shut down the game without navigating through menus.

Usage: Typing quit in the console will instantly close the game. Be cautious with this command to avoid accidentally quitting.

clear
Description: The clear command clears the console of previous messages and commands. It's useful for decluttering the console and maintaining a clean workspace.

Usage: Type clear in the console to wipe out the console history.

echo
Description: The echo command is a simple tool to display a message or text in the console. It's handy for adding notes, reminders, or comments for yourself or other players.

Usage: Use echo "<message>" to display your message in the console.

bind
Description: The bind command lets you assign specific actions or commands to a key on your keyboard. This can be extremely useful for creating custom keybindings tailored to your gameplay.

Usage: To bind a command to a key, use the syntax bind "<key>" "<command>". For example, bind "o" "noclip" binds the "noclip" command to the "o" key.

Section 2: Player Commands
noclip
Description: The noclip command allows you to move your character freely through walls, objects, and the entire game world without any constraints. It's often used for exploration and building in GMod.

Usage: Open the console and type noclip to activate or deactivate noclip mode.

god
Description: The god command grants your character invincibility, making you immune to all forms of damage. It's a great way to explore the game world or engage in creative activities without worrying about health.

Usage: Use god in the console to enable or disable god mode for your character.

kill
Description: The kill command instantly eliminates your character, essentially "killing" them. It's often used for quick respawning or resetting your character's position.

Usage: Simply type kill in the console to execute this command.

give
Description: The give command allows you to spawn weapons, items, or entities directly into your inventory. It's a useful command for equipping your character with the tools you need.

Usage: To use the give command, enter give <item_name> in the console. For example, give weapon_physgun will give you the Physics Gun.

playermodel
Description: The playermodel command lets you change your character's appearance by choosing from a variety of player models. You can customize your in-game avatar with this command.

Usage: Enter playermodel <model_name> in the console to change your character's model. For instance, playermodel male_07 changes your model to a male citizen.
Section 3: Admin and Server Commands
rcon
Description: The rcon command, short for "remote console," is a crucial tool for remote server administration. It allows you to execute console commands on your GMod server from a remote location, provided you have the correct server password.

Usage: To use rcon, type rcon_password <your_password> to set the server's remote console password. Then, connect to your server remotely and use rcon <command> to execute commands.

ulx
Description: ULX (Ulysses' Admin Mod) is a popular admin mod for Garry's Mod that adds a wide range of administrative tools and commands. ULX commands are essential for server administrators to manage players, enforce rules, and maintain order on their servers.

Usage: ULX commands typically follow the format ulx <command> <target>. For example, ulx kick <player_name> will kick the specified player from the server.

kick
Description: The kick command allows server administrators to forcibly remove a player from the server. It's a useful tool for maintaining order and enforcing server rules.

Usage: In the console, type kick <player_name> to kick a specific player from the server.

ban
Description: The ban command is used to permanently ban a player from the server. It's an effective way to keep troublemakers and rule violators at bay.

Usage: To ban a player, use the ban <player_name> command. You can also specify a ban duration or reason.

sv_password
Description: The sv_password command allows server administrators to set a password for their server. Only players who know the password can join, making it a valuable tool for private or restricted servers.

Usage: Type sv_password <your_password> in the console to set a server password. Players will need to enter this password to join the server.

changelevel
Description: The changelevel command is used to change the map or level on the server. It's crucial for transitioning between different game modes or scenarios.

Usage: In the console, type changelevel <map_name> to switch to a different map or level. Ensure that the map you want to change to is available on your server.
Section 4: Physics and Environment
physgun
Description: The physgun command is your ticket to becoming a master manipulator of in-game objects. It provides you with a Physics Gun, which allows you to pick up and move objects, creating elaborate structures and interactions.

Usage: Simply type physgun in the console to equip your character with the Physics Gun.

gravity
Description: The gravity command lets you control the force of gravity in your GMod world. You can adjust the gravity to create unique gameplay scenarios or to make objects behave differently.

Usage: Use gravity <value> to set a new gravity value for your server. For instance, gravity 400 doubles the standard gravity.

noclip
Description: As mentioned earlier, the noclip command allows you to move freely through objects and the game world. It's a valuable tool for exploration and building, and it falls into both player and environment control categories.

Usage: Open the console and type noclip to toggle noclip mode on or off.

ent_create
Description: The ent_create command is used to create and spawn entities into the game world. This can include various objects, NPCs, and items. It's a powerful tool for populating your GMod scenarios with the elements you desire.

Usage: Type ent_create <entity_name> in the console to spawn a specific entity into the game world.

sv_friction
Description: The sv_friction command controls the friction of surfaces in the game. It allows you to change how objects interact with the environment. Lower friction values make surfaces slippery, while higher values increase friction.

Usage: Use sv_friction <value> in the console to adjust the surface friction. For example, sv_friction 0.2 will reduce friction on surfaces.
Section 5: Graphics and Performance
mat_fullbright

Description: The mat_fullbright command can be used to enable or disable fullbright rendering, which makes all objects appear at maximum brightness regardless of lighting conditions. It can be helpful for examining maps or creating unique visual effects.

Usage: Typing mat_fullbright 1 in the console enables fullbright rendering, while mat_fullbright 0 disables it.

mat_wireframe

Description: The mat_wireframe command allows you to toggle wireframe rendering, turning objects in the game world into wireframes. This can be useful for debugging and examining the structure of objects.

Usage: Type mat_wireframe 1 to enable wireframe rendering, and mat_wireframe 0 to disable it.

cl_drawfps

Description: The cl_drawfps command displays the Frames Per Second (FPS) counter on your screen, providing real-time feedback on your game's performance.

Usage: Open the console and enter cl_drawfps 1 to enable the FPS counter. Use cl_drawfps 0 to disable it.

r_drawentities

Description: The r_drawentities command controls the rendering of entities (objects and characters) in the game. It can be used to hide or reveal entities, impacting performance and visibility.

Usage: Type r_drawentities 1 to show entities and r_drawentities 0 to hide them.
Section 6: Toolgun Commands
gmod_tool

Description: The gmod_tool command opens the Toolgun interface, allowing you to access various tool modes and manipulate objects in your Garry's Mod world.

Usage: Type gmod_tool in the console to open the Toolgun interface. Once opened, you can select specific tool modes and interact with objects in your environment.

gmod_toolmode

Description: The gmod_toolmode command allows you to switch between different tool modes available within the Toolgun interface. Each tool mode offers unique capabilities for editing and manipulating objects.

Usage: Use gmod_toolmode <mode_name> in the console to select a specific tool mode, such as gmod_toolmode weld to choose the Weld tool mode.

gmod_toolgun

Description: The gmod_toolgun command is used to equip the Toolgun as an in-game weapon. This enables you to directly interact with objects and access the Toolgun's features.

Usage: Typing gmod_toolgun in the console equips the Toolgun as your active in-game weapon.

gmod_toolmaterial

Description: The gmod_toolmaterial command allows you to change the material of an object using the Toolgun's Material tool. This can be used to modify the appearance and properties of objects.

Usage: Enter gmod_toolmaterial in the console to activate the Material tool. Use the Toolgun to select an object and change its material.

gmod_toolgun (again)

Description: The gmod_toolgun command, as mentioned earlier, is used to equip the Toolgun as an in-game weapon. It is listed again here to emphasize its importance and functionality within the Toolgun category.

Usage: Typing gmod_toolgun in the console equips the Toolgun as your active in-game weapon.
Section 7: Entity & NPC Commands
ent_fire

Description: The ent_fire command is a powerful tool for triggering events and actions within the game. You can use it to interact with entities, create dynamic scenarios, and control in-game systems.

Usage: Enter ent_fire <target> <input> <parameter> in the console to trigger an event on a specific entity.

npc_create

Description: The npc_create command is used to spawn NPCs into the game world. You can choose from a variety of NPCs to populate your scenarios or interact with them.

Usage: Type npc_create <npc_type> in the console to spawn a specific NPC. For example, npc_create npc_zombie will create a zombie NPC.

npc_kill

Description: The npc_kill command allows you to eliminate NPCs in the game world. It can be useful for resetting scenarios, removing unwanted characters, or triggering scripted events.

Usage: Enter npc_kill in the console to instantly kill all NPCs in the vicinity.

npc_citizen

Description: The npc_citizen command spawns a Citizen NPC into the game world.

Usage: Use npc_citizen in the console to create a Citizen NPC in your scenario.

npc_zombie

Description: The npc_zombie command is specifically designed to spawn a Zombie NPC into the game world.

Usage: Type npc_zombie in the console to spawn a Zombie NPC.
Section 8: Wiremod Commands
wire_adv

Description: The wire_adv command is used to access advanced features and functions of Wiremod. It provides additional tools for building complex electronic and computational contraptions.

Usage: Type wire_adv in the console to access advanced Wiremod functionalities.

wire_expression2

Description: The wire_expression2 command is used to create and program Expression 2 chips in Wiremod. Expression 2 is a powerful scripting language that allows you to build complex logical systems and customize behaviors.

Usage: Enter wire_expression2 in the console to create or edit Expression 2 chips.

wire_link

Description: The wire_link command is used to establish connections between Wiremod components. It allows you to link various devices and elements within your contraptions to create functional systems.

Usage: Use wire_link to connect components within your Wiremod contraption.

wire_adv_dupe

Description: The wire_adv_dupe command is used to duplicate advanced Wiremod contraptions. It's a handy tool for sharing and saving your complex creations.

Usage: Type wire_adv_dupe in the console to enable advanced Wiremod duplication functionality.
Section 9: Workshop and Addons
workshop_download_item

Description: The workshop_download_item command is used to download and subscribe to Workshop items, including maps, props, and game modes, directly from the Steam Workshop.

Usage: Type workshop_download_item <workshop_id> in the console to download a specific Workshop item.

addon_list

Description: The addon_list command displays a list of all installed addons on your GMod server. This command is helpful for checking which addons are currently active.

Usage: Simply enter addon_list in the console to view the list of installed addons.

addon_install

Description: The addon_install command allows you to install addons from your local directory or a URL. It's a useful tool for adding new content to your Garry's Mod.

Usage: Use addon_install <path_or_url> in the console to install addons. Provide the file path or URL for the addon you want to install.

addon_remove

Description: The addon_remove command is used to uninstall and remove specific addons from your GMod server. It's essential for managing your server's content.

Usage: Enter addon_remove <addon_id> in the console to remove a specific addon from your server.

Section 10: Sound and Music
play

Description: The play command allows you to play specific sound files in the game, providing ambient audio or adding audio effects to your scenarios.

Usage: Type play <sound_path> in the console to play a sound file located in your GMod directory.

stopsound

Description: The stopsound command is used to stop all currently playing sounds in the game. It's handy for quickly silencing audio when needed.

Usage: Enter stopsound in the console to stop all active sounds.

volume

Description: The volume command lets you adjust the game's audio volume. You can increase or decrease the volume to your liking.

Usage: Use volume <value> in the console to set the audio volume, where <value> is a number from 0 to 1.

snd_restart

Description: The snd_restart command restarts the game's audio system. It can be useful for troubleshooting sound-related issues and ensuring proper audio functionality.

Usage: Type snd_restart in the console to restart the audio system.

Section 11: Miscellaneous Commands
echo

Description: The echo command is a simple tool to display a message or text in the console. It's handy for adding notes, reminders, or comments for yourself or other players.

Usage: Use echo "<message>" to display your message in the console.

say

Description: The say command allows you to send a chat message to all players in the game. It's a way to communicate with other players in a multiplayer setting.

Usage: Type say "<your_message>" in the console to send a chat message to all players.

exit

Description: The exit command is used to gracefully exit Garry's Mod. It closes the game without abruptly shutting it down.

Usage: Typing exit in the console will close the game.

lua_run

Description: The lua_run command enables you to execute custom Lua scripts directly in the console. It's a powerful tool for running code and performing advanced scripting.

Usage: Enter lua_run <Lua_script> in the console to execute your custom Lua script.

record

Description: The record command is used to start recording a demo of your gameplay session. Demos can be saved and replayed later.

Usage: Type record <demo_name> in the console to start recording a demo with the specified name.
Section 12: Troubleshooting and Debugging
Section 13: Troubleshooting and Debugging
In this section, we will explore essential console commands for troubleshooting and debugging in Garry's Mod. Whether you're dealing with performance issues, graphical glitches, or want to access development information, these commands are invaluable for diagnosing and resolving problems.

Let's dive into the world of troubleshooting and debugging commands.

developer

Description: The developer command controls the level of debugging information displayed in the console. You can adjust it to access various debugging messages.

Usage: Use developer <level> to set the debugging level, where a higher number displays more information.

net_graph

Description: The net_graph command displays a graph with real-time network performance statistics. It's useful for monitoring server and network-related information.

Usage: Type net_graph <value> to toggle the network performance graph. <value> can be 0 to hide the graph, 1 to show it, or 3 to show additional statistics.

mat_wireframe

Description: The mat_wireframe command toggles wireframe rendering, allowing you to view the game world as wireframes. This can be handy for identifying rendering issues.

Usage: Use mat_wireframe 1 to enable wireframe rendering and mat_wireframe 0 to disable it.

cl_showpos

Description: The cl_showpos command displays your current position and angles in the game world. It can be helpful for navigation and debugging.

Usage: Enter cl_showpos 1 in the console to display your position and angles, or cl_showpos 0 to hide them.

showbudget

Description: The showbudget command displays budget information related to rendering in the game. It can be used to monitor resource allocation and identify performance bottlenecks.

Usage: Type showbudget in the console to display budget information.

Section 13: Custom Keybindings
Creating Custom Keybinds

Description: Creating custom keybindings in Garry's Mod enables you to tailor your gaming experience to your preferences. You can assign specific commands, actions, or scripts to keys or mouse buttons.

Usage: To create a custom keybinding, open the console and use the bind command with the syntax bind "<key>" "<command>". For example, bind "o" "noclip" binds the "noclip" command to the "o" key.
Conclusion
In this guide, we've covered a wide range of console commands in Garry's Mod, allowing you to manipulate the game environment, manage entities and NPCs, control Wiremod contraptions, interact with Workshop content, adjust audio settings, perform various tasks, troubleshoot issues, create custom keybindings, and more.

Mastering these commands will enhance your GMod experience, enabling you to create unique scenarios and troubleshoot effectively. Whether you're a player, server administrator, or content creator, knowledge of these commands is valuable.
Best Practices and Guidelines
As we conclude, here are some best practices and guidelines to keep in mind:

Always exercise caution when using powerful commands, especially in multiplayer environments, to avoid disrupting the gameplay experience of others.
Be aware of the potential impact of commands on server performance, especially when administering a multiplayer server.
Experiment and practice with commands in a controlled environment to avoid unintended consequences.
Explore additional resources, such as GMod community forums, guides, and tutorials, to further expand your knowledge and skills.
Exploring Additional Resources
If I missed any commands on this guide, feel free to explore more advanced techniques, consider checking out the following resources:

Garry's Mod Community Forums
Online video tutorials and guides
User-generated content on the Steam Workshop
The official Garry's Mod website for updates and news

Thank you for reading this guide!
16 Comments
what is this chat gpt shite lmao
kronics292 Jul 23, 2024 @ 4:00am 
it wont work i press the title key ~ and nothing works how do you check it when i go to options i cant find it anywhere
Redlinq Apr 26, 2024 @ 2:29pm 
"physgun" command doesnt work

] physgun
Unknown command: physgun

trying to give my self a physgun in singleplayer on a gamemode that does not let you use the spawn menu, also disabled my loadout addon
dialupmodem Apr 26, 2024 @ 10:09am 
When i try the playermodel one it says:

playermodel male_07
Unknown command: playermodel
arsenic Apr 12, 2024 @ 4:35pm 
Is there a command to reset every props material
Lester  [author] Feb 6, 2024 @ 2:19pm 
Some parts of it were AI generated but I cut most of it out to paraphrase and add actual working commands. But yes and thanks.
Tristan Feb 6, 2024 @ 10:35am 
This feels so AI generated, especially the "Always exercise caution when using powerful commands, especially in multiplayer environments, to avoid disrupting the gameplay experience of others.".

I have nothing against that, in fact, this article was actually made very well despite it being AI generated. Kudos to you for presumably using AI correctly.
Lester  [author] Nov 5, 2023 @ 10:29am 
:P8:
B3NNT3N Nov 5, 2023 @ 5:14am 
:steamthumbsup: