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

Function

textItemSetColor

ServerText displaysIdentical to MTA:SA

Changes a text item's colour.

Syntax

bool textItemSetColor(textitem theTextItem, int r, int g, int b [, int a = 255])

Arguments

theTextItemtextitem
The text item.
rint
Red.
gint
Green.
bint
Blue.
aint, optional = 255
Alpha.

Returns

true on success.

Example

local item = textCreateTextItem("Uwaga", 0.5, 0.5)
textItemSetColor(item, 255, 0, 0, 255)

See also