- Documentation
- Server functions
- textItemSetColor
Function
textItemSetColor
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)