Lumaktaw patungo sa pangunahing content

TextDrawIsBox

warning

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

Description

Checks if a textdraw is box.

Parameters

NameDescription
Text:textidThe ID of the textdraw to check.

Return Values

Returns true if the textdraw is box, otherwise false.

Example Usage

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawUseBox(gMyTextdraw, true); // Toggle box ON

if (TextDrawIsBox(gMyTextdraw))
{
// Textdraw is box
}
else
{
// Textdraw is not box
}
return 1;
}