Gamemode.SpawnMenuOpen
From GMod Wiki
Gamemode Function: Gamemode.SpawnMenuOpen | |
---|---|
Gamemode.SpawnMenuOpen is a function that is defined in the Sandbox Gamemode and its derivatives. |
Event Hook | |
Hook Name | SpawnMenuOpen |
Syntax | GM:SpawnMenuOpen( ) |
Description | Called when a player opens the Spawn Menu |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.SpawnMenuOpen]Gamemode.SpawnMenuOpen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Disallows the player to open the Spawn Menu. |
---|---|
Used on | |
Code | local function DisallowSpawnMenu( ) return false end hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", DisallowSpawnMenu) |
Output | N/A |