Gamemode.PostGamemodeLoaded
From GMod Wiki
Event Hook | |
Hook Name | PostGamemodeLoaded |
Syntax | GM:PostGamemodeLoaded( ) |
Description | Called right after the gamemode has loaded. This occurs AFTER Initialize, but before InitPostEntity. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PostGamemodeLoaded]Gamemode.PostGamemodeLoaded [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- For the server, this is called when you start it up after Gamemode.Initialize. For the client, this is called after the gamemode has loaded on your computer. Basically right after all gamemode loading/initialization has completed.
- If you need to do anything with entities, you should be using Gamemode.InitPostEntity, which is actually called after Gamemode.PostGamemodeLoaded. Lua file compression and server cfg execution occurs between Gamemode.PostGamemodeLoaded and Gamemode.InitPostEntity.
- This is very similar to Gamemode.Initialize. The only visible difference is when it is called.