Gamemode.SpawnMenuEnabled

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameSpawnMenuEnabled
SyntaxGM:SpawnMenuEnabled( )
DescriptionIf false is returned then the spawn menu is never created. This saves load times if your mod doesn't actually use the spawn menu for any reason.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.SpawnMenuEnabled]Gamemode.SpawnMenuEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDisables the spawn menu.
Used onNewerClient.png
Code
function GM:SpawnMenuEnabled()
	return false;
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox