Gamemode.OnSpawnMenuClose
From GMod Wiki
| Event Hook | |
| Hook Name | OnSpawnMenuClose |
| Syntax | GM:OnSpawnMenuClose( ) |
| Description | Called when a player closes the Spawn Menu. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.OnSpawnMenuClose]Gamemode.OnSpawnMenuClose [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Print a text in the console as soon as the player closes the Spawn Menu. |
|---|---|
| Used on | |
| Code | function GM:OnSpawnMenuClose() Msg( "Hello World!\n" ) end |
| Output | Prints 'Hello World' in the console. |