Garry's Mod Wiki

gamemode.Register

  gamemode.Register( table gm, string name, string derived )

Description

This is used internally - although you're able to use it you probably shouldn't.

Called by the engine when a gamemode is being loaded.

Arguments

1 table gm
Your GM table
2 string name
Name of your gamemode, lowercase, no spaces.
3 string derived
The gamemode name that your gamemode is derived from