Cheats & codes
Garry's Mod Cheat Codes
Grouped by type and platform, each one labelled reported working or tested.
There are 20 cheat codes for Garry's Mod across PC (Microsoft Windows). Each code below lists the exact button combination or console command, what it does, and whether using it disables achievements.
Console commands
20All Half-Life 2 weapons
Gives all Half-Life 2 weapons with ammo
Open console with ~ and type impulse 101
Requires sv_cheats 1
Allow noclip in Sandbox
Server setting that permits noclip in Sandbox mode
Enter in server console or server config
Server-side setting; set to 0 to block non-admin noclip
Buddha mode
Take damage but cannot die (health stops at 1)
Open console with ~ and type buddha
Requires sv_cheats 1
Change gravity
Sets world gravity; default is 600
Open console with ~ and type sv_gravity with a number
May need sv_cheats 1 or admin on servers
Change the physics gun colour
Sets the physics gun beam colour. Each value runs from 0 to 1, so this one is red.
Type into the console.
Damage yourself
Removes the given amount of health, e.g. hurtme 50
Open console with ~ and type hurtme with a number
Requires sv_cheats 1
Enable cheats
Master switch that enables cheat-protected commands
Enable dev console in Options, Keyboard tab, Advanced, check Enable Developer Console, then press ~ in game
Many commands need this first; on multiplayer servers needs admin or rcon access
Enable cheats first
Required before the commands below.
Press ` to open the console and type the command.
First-person camera
Returns to first-person view
Open console with ~ and type firstperson
Give any weapon
Spawns the named weapon.
Requires sv_cheats 1 first.
Give item or weapon
Spawns the named weapon or item into your inventory
Open console with ~ and type give with item name, e.g. give weapon_crowbar
Requires sv_cheats 1
God mode
Toggles invincibility on and off
Open console with ~ and type god
Requires sv_cheats 1; server may restrict it online
Invisible to NPCs
NPCs cannot see or target you
Open console with ~ and type notarget
Requires sv_cheats 1
No clipping
Fly through the map. Bound to V by default.
Requires sv_cheats 1 first.
Noclip
Fly freely and pass through walls and objects
Open console with ~ and type noclip
Requires sv_cheats 1 on cheat-protected servers; in Sandbox use V key instead
Spawn entity at crosshair
Creates the named entity where you are looking
Open console with ~ and type ent_create with entity name
Requires sv_cheats 1
Spawn NPC
Creates the named NPC at the point you are looking at
Open console with ~ and type npc_create with NPC class name
Requires sv_cheats 1
Suicide
Kills your character instantly
Open console with ~ and type kill
Third-person camera
Switches to third-person view
Open console with ~ and type thirdperson
Toggle HUD
Hides on-screen HUD info; use cl_drawhud 1 to restore
Open console with ~ and type the command
Tools for Garry's Mod cheats
-
Why is my Garry's Mod cheat not working?
Answer a few questions and get the specific reason, from our guides.
-
Search Garry's Mod codes by effect
Type "money" or "god mode" and find the code, typos forgiven.
-
Build a console command for Garry's Mod
Change the amount, item or location and copy a checked line.
-
Test your controller and button sequences
See every button respond, and check a sequence press by press.
Quick answers