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

TextDrawColour

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Sets the text colour of a textdraw

NameDescription
Text:textidThe ID of the textdraw to change the colour of.
textColourThe colour 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");
TextDrawColour(gMyTextdraw, 0x000000FF);
return 1;
}

Notes

подсказка

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