From GMod Wiki
|Description||Called when the gamemode loads and starts.|
|Description||Prints stuff when the gamemode loads and starts.|
function Init_Gamemode() Msg( "stuff\n" ) end hook.Add( "Initialize", "initializing", Init_Gamemode );
- For the server, this is called when you start it up. For the client, this is called when the gamemode is initialized on your computer. Basically right after the map/entities initialize functions are called.
- If you need to do anything with entities, you should be using Gamemode.InitPostEntity, since all entities have been initialized when that hook gets called. This one gets called right when the server (re)starts.
- Important! If you are concerned about a certain function starting after the gamemode has registered, then this is for you.