Przejdź do głównej zawartości

TextDrawGetBoxColor

warning

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

Description

Gets the box color of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the box color of.

Returns

Returns the box color of the textdraw.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawUseBox(gMyTextdraw, true);
TextDrawBoxColor(gMyTextdraw, 0xAA0000FF);

new boxColor = TextDrawGetBoxColor(gMyTextdraw);
// boxColor = 0xAA0000FF
return 1;
}