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

Function

textItemGetColor

ServerText displaysIdentical to MTA:SA

Returns a text item's colour.

Syntax

int, int, int, int textItemGetColor(textitem theTextItem)

Arguments

theTextItemtextitem
The text item.

Returns

r, g, b, a.

Example

local item = textCreateTextItem("A", 0.5, 0.5, "low", 255, 0, 0)
local r, g, b, a = textItemGetColor(item)

See also