Gamemode.PostGamemodeLoaded

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePostGamemodeLoaded
SyntaxGM:PostGamemodeLoaded( )
DescriptionCalled right after the gamemode has loaded. This occurs AFTER Initialize, but before InitPostEntity.
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PostGamemodeLoaded]Gamemode.PostGamemodeLoaded [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionPrints a message after the gamemode has loaded.
Used onNewerShared.png
Code
 
local function GamemodeLoadMsg()
    Msg( "The gamemode has loaded!\n" )
end
hook.Add( "PostGamemodeLoaded", "GamemodeLoadMsg", GamemodeLoadMsg )
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox