SA-MP Forums Archive
TextDraw Help - 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: TextDraw Help (/showthread.php?tid=574436)



TextDraw Help - XaibBaba - 17.05.2015

This is transparent black color textdraw box how could i make it transparent blue ?
Код:
	Wheels[17] = TextDrawCreate(454.500000, 312.500000, "Next");
	TextDrawLetterSize(Wheels[17], 0.265498, 1.385625);
	TextDrawAlignment(Wheels[17], 1);
	TextDrawColor(Wheels[17], -1);
	TextDrawSetShadow(Wheels[17], 0);
	TextDrawSetOutline(Wheels[17], 0);
	TextDrawBackgroundColor(Wheels[17], 255);
	TextDrawFont(Wheels[17], 2);
	TextDrawSetProportional(Wheels[17], 1);
	TextDrawSetShadow(Wheels[17], 0);



Re: TextDraw Help - Airman123 - 17.05.2015

TextDrawBackgroundColor(Wheels[17], 255);


Change the ID To blue color ID.

Red: 0xFF0000FF
White: 0xFFFFFFFF
Yellow: 0xFFFF00FF
Purple: 0x8700FFFF
Green: 0x33A542FF
Blue: 0x0000FFFF
Black: 0x000000FF
Orange: 0xFFA500FF

Код:
 TextDrawBackgroundColor(Wheels[17], 0x0000FFFF);



Re: TextDraw Help - fuckingcruse - 17.05.2015

I have a doubt how can we know the co-ordinates of screen to make textdraw? Like mostly for speedometer the right end corner.. like that


Re: TextDraw Help - XaibBaba - 17.05.2015

ok thanks but it doesn't work


Re: TextDraw Help - Konstantinos - 17.05.2015

You said "textdraw box" but you never use: https://sampwiki.blast.hk/wiki/TextDrawUseBox

If set to 1 that the textdraws uses box, you can change the color of it with: https://sampwiki.blast.hk/wiki/TextDrawBoxColor