TextDrawColor

From SA-MP Wiki

Jump to: navigation, search


Description:

Sets the text color of a textdraw


Image:32px-Ambox_warning_orange.png

Note

You can also use GameText Colors in TextDraws.


Parameters:
(Text:text, color)
textThe ID of the textdraw to change the color of..
colorThe color to set the textdraw to.


Return Values:

This function does not return any specific values.


new Text:Example;
 
public OnGameModeInit()
{
    Example = TextDrawCreate(123.0, 123.0, "Example");
    TextDrawColor(Example, 0x000000FF);
    return 1;
}
Image:32px-Ambox_warning_orange.png

Note

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


Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Personal tools
In other languages