TextDrawColor

Description

Sets the text color of a textdraw

NameDescription
textThe ID of the textdraw to change the color of..
colorThe 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

tip

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

Related Functions