Skip to content

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.

ShowHudText(id, pid)
Parameter Type
id number the element
pid number the player

boolean - false when the element or the player does not exist

function OnPlayerSpawn(pid)
ShowHudText(clock, pid)
ShowHudText(score, pid)
end

HideHudText · ShowHudTextForAll · IsHudTextShown · the GameText and HUD group of the index