Garry's Mod Console Commands: Cheats for PC

Published by

Enable cheats

CheatCommandEffect
Enable cheatsPCsv_cheats 1Unlocks the cheat-protected commands
Disable cheatsPCsv_cheats 0Locks the cheat commands again

God mode and health

CheatCommandEffect
God modePCgodMakes you invulnerable to damage
Buddha modePCbuddhaYou still take damage but cannot die; health stays at 1
God mode for everyonePCsbox_godmode 1Sandbox setting that makes all players invincible

Weapons

CheatCommandEffect
All weaponsPCimpulse 101Gives every Half-Life 2 weapon with full ammo
Give a crowbarPCgive weapon_crowbarSpawns an entity by class name; the crowbar is the example
Weapons on spawnPCsbox_weapons 1Sandbox setting that gives players the default Half-Life 2 weapons when they spawn

Movement

CheatCommandEffect
NoclipPCnoclipFly through walls and props
Allow noclipPCsbox_noclip 1Sandbox setting that lets players use noclip; 0 blocks it
Noclip speedPCsv_noclipspeed 5Sets the noclip speed; 5 is the default

Sandbox settings

CheatCommandEffect
Player damagePCsbox_playershurtplayers 1Lets players damage each other; 0 turns it off
Prop limitPCsbox_maxprops 100Sets how many props one player can spawn; 100 is the default
NPC limitPCsbox_maxnpcs 10Sets how many NPCs one player can spawn; 10 is the default
Clean up your propsPCgmod_cleanupRemoves 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

  1. Open Options, go to the Keyboard tab and click Advanced.
  2. Tick Enable developer console (~) and click OK.
  3. Start a game, press ~, type sv_cheats 1 and press Enter.
  4. Type a command and press Enter.

How to enable developer mode in Garry's Mod

  1. Open Options and go to the Keyboard tab.
  2. Click Advanced.
  3. Tick Enable developer console (~) and click OK.
  4. Press ~ in game to open the console.

GameHostBros: Garry's Mod console commands

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.

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.

Part of

References: GameHostBros: Garry's Mod console commands; XGamingServer: How to enable cheats on your Garry's Mod server; Physgun: How to enable cheats on your Garry's Mod server; Garry's Mod Wiki (Facepunch): cleanup.CC_Cleanup.