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