Gamemode.OnSpawnMenuOpen

From GMod Wiki

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


Examples

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox