ShowHudText
Shows a HUD text on one player’s screen.
Usually called from OnPlayerSpawn so a late joiner gets the mode’s elements too - ShowHudTextForAll only reaches
the players connected at the time.
Syntax
Section titled “Syntax”ShowHudText(id, pid)| Parameter | Type | |
|---|---|---|
id |
number | the element |
pid |
number | the player |
Returns
Section titled “Returns”boolean - false when the element or the player does not exist
Example
Section titled “Example”function OnPlayerSpawn(pid) ShowHudText(clock, pid) ShowHudText(score, pid)endSee also
Section titled “See also”HideHudText · ShowHudTextForAll · IsHudTextShown · the GameText and HUD group of the index
