• gamemenucommand to view server browser?
    12 replies, posted
I'm having a bit of trouble making a custom escape menu. I've almost finished it and I just need to fix to of the selections on it: servers and options. Servers should open the legacy browser and options should open the options menu. So far what I've got for these two is basically just making the client run a console command (gamemenucommand openserverbrowser) but you can only see it when you open the console. Anyway I could make it pop up?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/ActivateGameUI]gui.ActivateGameUI[/url]
[QUOTE=BillyOnWiiU;49918497][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/ActivateGameUI]gui.ActivateGameUI[/url][/QUOTE] Can't use that, all it will do is close the escape menu.
[QUOTE=Swagman1337;49918687]Can't use that, all it will do is close the escape menu.[/QUOTE] Look through gamemenuui or w/e it was called "engine" commands? there is everything you want, Console, Server browser etc.
[QUOTE=whitestar;49919550]Look through gamemenuui or w/e it was called "engine" commands? there is everything you want, Console, Server browser etc.[/QUOTE] Can't seem to find any info about engine command. Mind sending a link or something?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/ShowConsole]gui.ShowConsole[/url]
[QUOTE=Kevlon;49919723][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/ShowConsole]gui.ShowConsole[/url][/QUOTE] Just throws an error.
[QUOTE=Swagman1337;49919770]Just throws an error.[/QUOTE] Thought you mean't you have a custom main menu. Just make a button to open the default main menu. 'custom escape menus' are just annoying
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/RunGameUICommand]Global.RunGameUICommand[/url] Duh. Not hard to find.
[QUOTE=whitestar;49920278][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/RunGameUICommand]Global.RunGameUICommand[/url] Duh. Not hard to find.[/QUOTE] Exact same result as what I'm already doing.
[QUOTE=Swagman1337;49920315]Exact same result as what I'm already doing.[/QUOTE] Either you overly coded your esc menu wrong, or you use it wrong, since for me the concommand for the engine OpenServerBrowser works perfectly fine, same for console, mute etc.
[QUOTE=whitestar;49920554]Either you overly coded your esc menu wrong, or you use it wrong, since for me the concommand for the engine OpenServerBrowser works perfectly fine, same for console, mute etc.[/QUOTE] Nothing pops up when I try and I have to open console to see it.
Then, as I said, you coded your esc menu wrong, I dont even wanna know how you coded it, to overwrite engine things.
Sorry, you need to Log In to post a reply to this thread.