Portal SAMP
[Ajuda] como alterar textdraw - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] como alterar textdraw (/showthread.php?tid=4270)



como alterar textdraw - EduzinMods - 04/12/2023

tenho uma textdraw de fome, sede, bexiga e sono e eles estao muito pequenos e gostaria de aumentar o tamanho

TEXTDRAW

Código PHP:
TextdrawHud[playerid][15] = CreatePlayerTextDraw(playerid562.000000415.000000"100");
PlayerTextDrawFont(playeridTextdrawHud[playerid][15], 2);
PlayerTextDrawLetterSize(playeridTextdrawHud[playerid][15], 0.1458330.550000);
PlayerTextDrawTextSize(playeridTextdrawHud[playerid][15], 400.000000200.000000);
PlayerTextDrawSetOutline(playeridTextdrawHud[playerid][15], 0);
PlayerTextDrawSetShadow(playeridTextdrawHud[playerid][15], 0);
PlayerTextDrawAlignment(playeridTextdrawHud[playerid][15], 2);
PlayerTextDrawColor(playeridTextdrawHud[playerid][15], -1378294017);
PlayerTextDrawBackgroundColor(playeridTextdrawHud[playerid][15], 255);
PlayerTextDrawBoxColor(playeridTextdrawHud[playerid][15], 50);
PlayerTextDrawUseBox(playeridTextdrawHud[playerid][15], 0);
PlayerTextDrawSetProportional(playeridTextdrawHud[playerid][15], 1);
PlayerTextDrawSetSelectable(playeridTextdrawHud[playerid][15], 0);

TextdrawHud[playerid][16] = CreatePlayerTextDraw(playerid581.000000415.000000"100");
PlayerTextDrawFont(playeridTextdrawHud[playerid][16], 2);
PlayerTextDrawLetterSize(playeridTextdrawHud[playerid][16], 0.1458330.550000);
PlayerTextDrawTextSize(playeridTextdrawHud[playerid][16], 400.000000200.000000);
PlayerTextDrawSetOutline(playeridTextdrawHud[playerid][16], 0);
PlayerTextDrawSetShadow(playeridTextdrawHud[playerid][16], 0);
PlayerTextDrawAlignment(playeridTextdrawHud[playerid][16], 2);
PlayerTextDrawColor(playeridTextdrawHud[playerid][16], -1378294017);
PlayerTextDrawBackgroundColor(playeridTextdrawHud[playerid][16], 255);
PlayerTextDrawBoxColor(playeridTextdrawHud[playerid][16], 50);
PlayerTextDrawUseBox(playeridTextdrawHud[playerid][16], 0);
PlayerTextDrawSetProportional(playeridTextdrawHud[playerid][16], 1);
PlayerTextDrawSetSelectable(playeridTextdrawHud[playerid][16], 0);

TextdrawHud[playerid][17] = CreatePlayerTextDraw(playerid601.000000415.000000"100");
PlayerTextDrawFont(playeridTextdrawHud[playerid][17], 2);
PlayerTextDrawLetterSize(playeridTextdrawHud[playerid][17], 0.1458330.550000);
PlayerTextDrawTextSize(playeridTextdrawHud[playerid][17], 400.000000200.000000);
PlayerTextDrawSetOutline(playeridTextdrawHud[playerid][17], 0);
PlayerTextDrawSetShadow(playeridTextdrawHud[playerid][17], 0);
PlayerTextDrawAlignment(playeridTextdrawHud[playerid][17], 2);
PlayerTextDrawColor(playeridTextdrawHud[playerid][17], -1378294017);
PlayerTextDrawBackgroundColor(playeridTextdrawHud[playerid][17], 255);
PlayerTextDrawBoxColor(playeridTextdrawHud[playerid][17], 50);
PlayerTextDrawUseBox(playeridTextdrawHud[playerid][17], 0);
PlayerTextDrawSetProportional(playeridTextdrawHud[playerid][17], 1);
PlayerTextDrawSetSelectable(playeridTextdrawHud[playerid][17], 0);

TextdrawHud[playerid][18] = CreatePlayerTextDraw(playerid619.000000415.000000"100");
PlayerTextDrawFont(playeridTextdrawHud[playerid][18], 2);
PlayerTextDrawLetterSize(playeridTextdrawHud[playerid][18], 0.1458330.550000);
PlayerTextDrawTextSize(playeridTextdrawHud[playerid][18], 400.000000200.000000);
PlayerTextDrawSetOutline(playeridTextdrawHud[playerid][18], 0);
PlayerTextDrawSetShadow(playeridTextdrawHud[playerid][18], 0);
PlayerTextDrawAlignment(playeridTextdrawHud[playerid][18], 2);
PlayerTextDrawColor(playeridTextdrawHud[playerid][18], -1378294017);
PlayerTextDrawBackgroundColor(playeridTextdrawHud[playerid][18], 255);
PlayerTextDrawBoxColor(playeridTextdrawHud[playerid][18], 50);
PlayerTextDrawUseBox(playeridTextdrawHud[playerid][18], 0);
PlayerTextDrawSetProportional(playeridTextdrawHud[playerid][18], 1);
PlayerTextDrawSetSelectable(playeridTextdrawHud[playerid][18], 0); 



RE: como alterar textdraw - Carlos Victor - 04/12/2023

O tamanho da textdraw é defino atráves da função PlayerTextDrawLetterSize e também PlayerTextDrawTextSize.

Altere algum dos dois e obtenha o resultado que deseja.


RE: como alterar textdraw - White_Blue - 04/12/2023

Recomendo usar algum editor de textdraw, existem diversos, vai do seu gosto.

Recomendo o editor do nexquery.