Garry's Mod Console Commands: Cheats for PC
- PC Turn on the developer console, press ~, type sv_cheats 1, then type a command and press Enter.
Published by Andrew B.
No cheats match that filter.
Enable cheats
| Cheat | Command | Effect |
|---|---|---|
| Enable cheats | PCsv_cheats 1 | Unlocks the cheat-protected commands |
| Disable cheats | PCsv_cheats 0 | Locks the cheat commands again |
God mode and health
| Cheat | Command | Effect |
|---|---|---|
| God mode | PCgod | Makes you invulnerable to damage |
| Buddha mode | PCbuddha | You still take damage but cannot die; health stays at 1 |
| God mode for everyone | PCsbox_godmode 1 | Sandbox setting that makes all players invincible |
Weapons
| Cheat | Command | Effect |
|---|---|---|
| All weapons | PCimpulse 101 | Gives every Half-Life 2 weapon with full ammo |
| Give a crowbar | PCgive weapon_crowbar | Spawns an entity by class name; the crowbar is the example |
| Weapons on spawn | PCsbox_weapons 1 | Sandbox setting that gives players the default Half-Life 2 weapons when they spawn |
Movement
| Cheat | Command | Effect |
|---|---|---|
| Noclip | PCnoclip | Fly through walls and props |
| Allow noclip | PCsbox_noclip 1 | Sandbox setting that lets players use noclip; 0 blocks it |
| Noclip speed | PCsv_noclipspeed 5 | Sets the noclip speed; 5 is the default |
Sandbox settings
| Cheat | Command | Effect |
|---|---|---|
| Player damage | PCsbox_playershurtplayers 1 | Lets players damage each other; 0 turns it off |
| Prop limit | PCsbox_maxprops 100 | Sets how many props one player can spawn; 100 is the default |
| NPC limit | PCsbox_maxnpcs 10 | Sets how many NPCs one player can spawn; 10 is the default |
| Clean up your props | PCgmod_cleanup | Removes the props you spawned |
A code here did not work? Tell us and it gets rechecked. Report a code
How to enter cheats in Garry's Mod
PC
- Open Options, go to the Keyboard tab and click Advanced.
- Tick Enable developer console (~) and click OK.
- Start a game, press ~, type sv_cheats 1 and press Enter.
- Type a command and press Enter.
How to enable developer mode in Garry's Mod
- Open Options and go to the Keyboard tab.
- Click Advanced.
- Tick Enable developer console (~) and click OK.
- Press ~ in game to open the console.
Can you use these cheats in multiplayer?
On a server, sv_cheats is all or nothing. XGamingServer says it applies to every connected player, so it suits a private server among friends rather than a public one, and it suggests an admin mod such as ULX if you want only admins to fly. Admins can also turn it on over RCON with rcon sv_cheats 1. XGamingServer: How to enable cheats on your Garry's Mod server
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- Servers XGamingServer says sv_cheats is server-wide, not per player: once it is 1, every connected player can noclip, spawn weapons and use god mode. Setting it back to 0 drops anyone who is in noclip. XGamingServer: How to enable cheats on your Garry's Mod server
- Map changes and restarts XGamingServer says a value typed in the console goes back to the config value after a map change or restart. Only a line in garrysmod/cfg/server.cfg keeps it on. XGamingServer: How to enable cheats on your Garry's Mod server
- Checking that cheats are on Physgun says typing sv_cheats on its own shows the current value, and that impulse 101 is a quick test once it reads 1. Physgun: How to enable cheats on your Garry's Mod server
- Cleanup The Facepunch wiki says gmod_cleanup is the command that lets a player clean up their own props. Garry's Mod Wiki (Facepunch): cleanup.CC_Cleanup
FAQ
How do you open the console in Garry's Mod?
Go to Options Keyboard Advanced, tick Enable developer console (~), then press ~ in game.
How do you turn on cheats in Garry's Mod?
Type sv_cheats 1 in the console. On a server, it has to be set on the server and applies to every player.
How do you get all weapons in Garry's Mod?
With cheats on, type impulse 101. It gives every Half-Life 2 weapon with full ammo.
How do you turn on god mode in Garry's Mod?
Type god with cheats on, or set sbox_godmode 1 to make every player invincible in Sandbox.
