GuiClose: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 29: Line 29:
* Do not use the document handle after it has been closed.
* Do not use the document handle after it has been closed.


[[Category:Lua Functions]]
[[Category:Client Functions]]
[[Category:Client Functions]]
[[Category:GUI Functions]]
[[Category:GUI Functions]]

Latest revision as of 09:53, 15 August 2026

guiClose

Closes an RML document and releases its runtime handle.

Syntax

bool guiClose(DocumentHandle document)

Parameters

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

Returns

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

Examples

Close a temporary dialog:

guiClose(dialogDocument)
dialogDocument = nil

Notes

  • Available only in client-side resource scripts.
  • Do not use the document handle after it has been closed.