Menu
 

Garry's Mod Admin Commands

Garry's Mod Admin Commands Guide

Essential console and RCON commands for managing your Garry's Mod server.

Enabling Admin Access

To use admin commands, you must be authenticated. Options:

  • Set rcon password in server.cfg and use RCON
  • Add yourself to the admin system via ULX or other admin mods
  • Use sv_cheats 1 (not recommended for production servers)

RCON Commands

Execute commands from outside the game:

rcon_password "your_password" # Authenticate rcon status # Show server info and players rcon kickid [userid] [reason] # Kick by user ID rcon kick [name] [reason] # Kick by name rcon banid [steamid] [duration] # Ban by SteamID (0 = permanent) rcon ban [name] [duration] # Ban by name rcon unbanid [steamid] # Unban by SteamID rcon addip [duration] [ip] # Ban IP address rcon removeip [ip] # Unban IP rcon changelevel [map] # Change map rcon map [map] # Restart with new map rcon restart # Restart server rcon quit # Shutdown server

Player Management Commands

status # List connected players with IDs users # List all players kickid [userid] [reason] # Kick specific player kick [name] [reason] # Kick by name banid [steamid] [duration] [reason] # Ban player writeid # Save bans to file writeip # Save IP bans to file

Server Control Commands

hostname "[name]" # Change server name sv_password "[password]" # Set server password sv_password "" # Remove server password map [mapname] # Change map immediately changelevel [mapname] # Change map without reconnect restart # Restart server quit # Shutdown server

Map Commands

map [name] # Load map (reloads server) changelevel [name] # Change map (keeps players) listmaps # List all available maps maps *pattern* # Search for maps

Cheats & Debug Commands

sv_cheats 1 # Enable cheats (WARNING: Security risk) god # God mode on yourself noclip # No-clip mode impulse 101 # Give yourself all weapons sv_gravity [number] # Change gravity (default 600) sv_airaccelerate [number] # Air acceleration (default 10)

Network Commands

net_graph 1/2/3/4 # Show network graph net_graphpos 0/1/2 # Move graph position sv_maxrate [number] # Max bandwidth per player sv_minrate [number] # Min bandwidth per player sv_maxupdaterate [number] # Max update frequency sv_minupdaterate [number] # Min update frequency

Useful Aliases

Create these in cfg/autoexec.cfg for quick access:

alias kickall "sv_password temp; changelevel gm_construct; sv_password \"\"" alias restart_map "changelevel gm_construct"

Security Warning: Never enable sv_cheats 1 on a public server. It allows players to spawn items, fly, and disrupt gameplay.

Admin Mods

For more advanced admin features, consider installing:

  • ULX: Most popular admin mod with GUI commands
  • Evolve: Alternative admin system
  • Cheers: Modern admin interface
Top