Garry's Mod Wiki

gui.HideGameUI

  gui.HideGameUI()

Description

Hides the game main menu if it is currently open.

This can only be ran a certain amount of times per second to prevent main menu being completely inaccessible by the player.

Use GM:OnPauseMenuShow to prevent opening the main menu without a one frame flash.