Przejdź do głównej zawartości

TextDrawGetBackgroundColour

warning

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

Description

Gets the background colour of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the background colour of.

Returns

Returns the background colour of the textdraw.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawSetOutline(gMyTextdraw, 1);
TextDrawBackgroundColour(gMyTextdraw, 0xFF0000FF);

new backgroundColour = TextDrawGetBackgroundColour(gMyTextdraw);
// backgroundColour = 0xFF0000FF
return 1;
}