SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje serwera
  3. textItemSetColor

Funkcja

textItemSetColor

SerwerWyświetlacze tekstuIdentyczna z MTA:SA

Zmienia kolor napisu.

Składnia

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

Argumenty

theTextItemtextitem
Napis.
rint
Czerwony.
gint
Zielony.
bint
Niebieski.
aint, opcjonalny = 255
Krycie.

Zwraca

true przy powodzeniu.

Przykład

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

Zobacz też