SetHudText
Changes a HUD text’s text.
Re-sent to everyone the element is shown to. A change every second is fine; every tick is not.
Syntax
Section titled “Syntax”SetHudText(id, text)| Parameter | Type | |
|---|---|---|
id |
number | the element |
text |
string | the new line |
Returns
Section titled “Returns”boolean - false when there is no such element
Example
Section titled “Example”SetHudText(score, string.format("Red %d - Blue %d", red, blue))See also
Section titled “See also”GetHudText · CreateHudText · the GameText and HUD group of the index
