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

Function

textItemSetPriority

ServerText displaysIdentical to MTA:SA

Changes a text item's priority: "high" for fast-changing texts (counters), "low" for static ones.

Syntax

bool textItemSetPriority(textitem theTextItem, string priority)

Arguments

theTextItemtextitem
The text item.
prioritystring
"low", "medium" or "high".

Returns

true on success.

Example

local item = textCreateTextItem("0", 0.5, 0.5)
textItemSetPriority(item, "high")

See also