G.RunGameUICommand
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.RunGameUICommand]G.RunGameUICommand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Open the server browser |
|---|---|
| Used on | |
| Code | RunGameUICommand('OpenServerBrowser') |
| Output | Opens 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.