SA-MP Forums Archive
How to change textdraw font? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to change textdraw font? (/showthread.php?tid=542687)



How to change textdraw font? - AlterEGO - 21.10.2014

Hey i created a textdraw at the side,
I want it to have that "San Andreas" Font,
So it will be nicer,
If anyone could help me do it or create it for me i will be thankfull..


Re: How to change textdraw font? - TwinkiDaBoss - 21.10.2014

Check this out
https://sampwiki.blast.hk/wiki/TextDrawFont


Re: How to change textdraw font? - AlterEGO - 21.10.2014

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Yeah but i still don't get it,
How do i change the font and how do i know his ID or something?
If anyone could make me a quick one i will be gratefull.


Re: How to change textdraw font? - TwinkiDaBoss - 21.10.2014

pawn Код:
CMD:changefont(playerid,params[])
{
    new fontid;
    if(sscanf(params,"i",fontid)) return SendClientMessage(playerid,COLOR_RED,"<!>Type /changefont [fontid]");
    if(fontid >= 5) return SendClientMessage(playerid,COLOR_RED,"<!>Invalid font");
    TextDrawFont(MYTEXTDRAW, fontid);
        TextDrawHideForPlayer(playerid,MYTEXTDRAW);
        TextDrawShowForPlayer(playerid,MYTEXTDRAW);
    return true;
}
Yes. You use Fontid. You can use 1,2,3,4,5.

Altho dont forget that 4 is for sprites
and fontid 5 is for preview model.


If you want to change text you use 1,2,3

pawn Код:
TextDrawSetFont(MYTXT,1-2-3);
Change 1-2-3 to for example 1 or 2 or 3.


pawn Код:
TextDrawSetFont(MYTXT,1);



Re: How to change textdraw font? - Glossy42O - 21.10.2014

This is scripting HELP section