GuiSetInnerRML: 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 32: Line 32:
* Only insert trusted or properly escaped text into RML markup.
* Only insert trusted or properly escaped text into RML markup.


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

Latest revision as of 09:54, 15 August 2026

guiSetInnerRML

Replaces the child markup of an RML element.

Syntax

bool guiSetInnerRML(DocumentHandle document, string elementId, string rml)

Parameters

Name Type Required Description
document DocumentHandle yes The owning document.
elementId string yes The target element's id attribute.
rml string yes RML markup to place inside the element.

Returns

Returns true when the markup is replaced; otherwise returns false.

Examples

Update a status label:

guiSetInnerRML(hudDocument, "status", "<strong>Connected</strong>")

Notes

  • Available only in client-side resource scripts.
  • Only insert trusted or properly escaped text into RML markup.