ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. textCreateDisplay

Function

textCreateDisplay

ServerText displaysIdentical to MTA:SA

Creates a text display: a set of texts drawn on the screens of chosen players, controlled entirely from the server (no client script). You add texts to it (textDisplayAddText) and observers - the players who see it (textDisplayAddObserver). Useful for simple messages, timers and scores.

Syntax

textdisplay textCreateDisplay()

Returns

The new display.

Example

local display = textCreateDisplay()
local label = textCreateTextItem("Wyscig startuje za 10 s", 0.5, 0.3, "medium", 255, 200, 0, 255, 2, "center", "center")
textDisplayAddText(display, label)
for _, player in ipairs(getElementsByType("player")) do textDisplayAddObserver(display, player) end

See also