Gamemode.OnSpawnMenuClose

From GMod Wiki

Revision as of 15:31, 19 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameOnSpawnMenuClose
SyntaxGM:OnSpawnMenuClose( )
DescriptionCalled when a player closes the Spawn Menu.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.OnSpawnMenuClose]Gamemode.OnSpawnMenuClose [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrint a text in the console as soon as the player closes the Spawn Menu.
Used onNewerClient.png
Code
function GM:OnSpawnMenuClose()
	Msg( "Hello World!\n" )
end
OutputPrints 'Hello World' in the console.


See Also

Gamemode.SpawnMenuOpen

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox