Passa al contenuto principale

TextDrawIsProportional

Avviso

La funzione è stata aggiunta nella versione omp v1.1.0.2612 e non funziona nelle versioni precedenti!

Description​

Checks if a textdraw is proportional.

Parameters​

NameDescription
Text:textidThe ID of the textdraw to check.

Return Values​

Returns true if the textdraw is proportional, otherwise false.

Example Usage​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawSetProportional(gMyTextdraw, true);

if (TextDrawIsProportional(gMyTextdraw))
{
// Textdraw is proportional
}
else
{
// Textdraw is not proportional
}
return 1;
}