SetHudTextColor
Recolors a HUD text.
Syntax
Section titled “Syntax”SetHudTextColor(id, color)| Parameter | Type | |
|---|---|---|
id |
number | the element |
color |
number | 0xRRGGBBAA |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”SetHudTextColor(timer, secondsLeft <= 10 and COLOR_RED or COLOR_WHITE)See also
Section titled “See also”CreateHudText · the GameText and HUD group of the index
