UltimateUI guide
Updating Elements
Modify UI properties in real-time while a player has an active session.
These methods allow you to dynamically update UI components for players currently viewing a menu or HUD. Changes are pushed to the client and rendered instantly without needing to re-open the interface.
| Method | Returns | Description |
|---|---|---|
setElementText(Player, String id, String text) | boolean | Updates the text content of a specific element. |
setElementColor(Player, String id, String color) | boolean | Changes the element's color (supports Hex strings). |
setElementPosition(Player, String id, double x, double y) | boolean | Moves the element to the specified coordinates. |
setElementScale(Player, String id, double w, double h) | boolean | Resizes the element's width and height. |
setElementItem(Player, String id, String itemToken) | boolean | Changes the icon/item using a token string. |
setElementValue(Player, String id, String path, Object val) | boolean | Sets a raw property value via a specific path. |