G.RunGameUICommand

From GMod Wiki

Revision as of 02:30, 31 October 2011 by BlackAwps (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax RunGameUICommand( String Cmd )
Where is this used?
Description:
Run a menu command, not the same as a console command.
Returns: nil
Part of Library: Global Functions
Realm: Menu.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.RunGameUICommand]G.RunGameUICommand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOpen the server browser
Used onMenu.png
Code
RunGameUICommand('OpenServerBrowser')
OutputOpens the engines server browser


Info

Was discovered in the the GMod beta (Version 130+) due to it's usage in the new HTML main menu. It also works in the non beta, so it is unknown when it was officially added.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox