GuiShow

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

guiShow

Shows a loaded RML document.

Syntax

bool guiShow(DocumentHandle document)

Parameters

Name Type Required Description
document DocumentHandle yes The document to show.

Returns

Returns true when the document is shown; otherwise returns false.

Examples

Show a previously loaded menu:

local menu = guiLoadDocument("ui/menu.rml")
guiShow(menu)

Notes

  • Available only in client-side resource scripts.