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).
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”GameText(pid, "You win!", 4000)GameText(pid, "The spawn", 1500, GAMETEXT_LOWER)See also
Section titled “See also”GameTextForAll · SendClientMessage · CreateHudText · the GameText and HUD group of the index
