Skip to content

GameText

One big line on the player’s screen for a while.

A line in a large serif, fading out over its last half second; a new one replaces the old. style is GAMETEXT_CENTRE (0, big in the middle), GAMETEXT_TOP (1, under the top edge) or GAMETEXT_LOWER (2, the lower third, like a subtitle).

GameText(pid, text [, ms, style])
Parameter Type
pid number the player
text string the line
ms number how long it stays, milliseconds (3000; 100 .. 60000) (optional)
style number GAMETEXT_CENTRE (the default), GAMETEXT_TOP or GAMETEXT_LOWER (optional)

boolean - false when not connected

GameText(pid, "You win!", 4000)
GameText(pid, "The spawn", 1500, GAMETEXT_LOWER)

GameTextForAll · SendClientMessage · CreateHudText · the GameText and HUD group of the index