Garry's Mod Wiki

Panel:DoModal

  Panel:DoModal()

Description

Makes the panel "lock" the screen until it is removed. All input will be directed to the given panel.

It will silently fail if used while cursor is not visible. Call Panel:MakePopup before calling this function. This must be called on a panel derived from EditablePanel.