Перейти к основному содержимому

TextDrawGetColor

Предупреждение

В версии omp v1.1.0.2612 добавлено следующее: функция. В более ранних версиях это не работает!

Description​

Gets the text color of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the color of.

Returns​

Returns the text color of the textdraw.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColor(gMyTextdraw, 0xFF0000FF);

new color = TextDrawGetColor(gMyTextdraw);
// color = 0xFF0000FF
return 1;
}