Przejdź do głównej zawartości

TextDrawColor

Description

Sets the text color of a textdraw

NameDescription
Text:textidThe ID of the textdraw to change the color of..
textColourThe color to set the textdraw to.

Returns

This function does not return any specific values.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColor(gMyTextdraw, 0x000000FF);
return 1;
}

Notes

wskazówka

If the TextDraw is already shown, it must be re-shown (TextDrawShowForAll/TextDrawShowForPlayer) for the changes of this function to take effect.