GuiRemoveAttribute

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 20:13, 5 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

guiRemoveAttribute

Removes a safe attribute from an element in a loaded RML document.

Syntax

bool guiRemoveAttribute(DocumentHandle document, string elementId, string name)

Parameters

Name Type Required Description
document DocumentHandle yes The owning RML document handle.
elementId string yes The target element's id attribute.
name string yes The safe attribute name to remove.

Returns

Returns true when the target element exists and the removal is performed; otherwise returns false.

Examples

Clear a custom data attribute:

guiRemoveAttribute(window, "character-panel", "data-role")

Notes

  • Available only in client-side resource scripts.
  • The same safe-name policy as guiSetAttribute is applied.