How to change textdraw font?
#1

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..
Reply
#2

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

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.
Reply
#4

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);
Reply
#5

This is scripting HELP section
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)