Saltar al contenido principal

TextDrawIsSelectable

aviso

Este elemento (función) se añadió en omp v1.1.0.2612 y no funciona en versiones anteriores.

Description​

Checks if a textdraw is selectable.

Parameters​

NameDescription
Text:textidThe ID of the textdraw to check.

Return Values​

Returns true if the textdraw is selectable, otherwise false.

Example Usage​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawTextSize(gMyTextdraw, 30.0, 10.0);
TextDrawSetSelectable(gMyTextdraw, true);

if (TextDrawIsSelectable(gMyTextdraw))
{
// Textdraw is selectable
}
else
{
// Textdraw is not selectable
}
return 1;
}