TD Model background
#1

Hello guys, I have problem with textdraw background... Background is black...
Код:
	TDInfo = TextDrawCreate(437.200042, 435.680023, "LD_SPAC:white");
	TextDrawLetterSize(TDInfo, 0.174797, 4.631999);
	TextDrawTextSize(TDInfo, -20.800035, 11.200028);
	TextDrawAlignment(TDInfo, 1);
	TextDrawColor(TDInfo, -1);
	TextDrawBackgroundColor(YMenuTD, 0x00000000 );
	TextDrawUseBox(TDInfo, true);
	TextDrawBoxColor(TDInfo, 0x00000000 );
	TextDrawSetShadow(TDInfo, 0);
	TextDrawSetOutline(TDInfo, 0);
	TextDrawFont(TDInfo, 5);
	TextDrawSetPreviewModel(TDInfo, 1239);
	TextDrawSetPreviewRot(TDInfo, 0.000000, 0.000000, 0.000000, 1.000000);
Please help!
Reply
#2

Alter the values of TextDrawBackgroundColor and TextDrawBoxColor, depending on what you want to change.

TextDrawBackgroundColor serves as the outline, whilst TextDrawBoxColor is the inner box.

The colour code which you are using is assigned for black, change "0x00000000" to "0xFFFFFFFF" and this will change the background to white.
Reply
#3

Use This To Make it invisible TextDrawBackgroundColor(YMenuTD, 00);
Reply
#4

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Alter the values of TextDrawBackgroundColor and TextDrawBoxColor, depending on what you want to change.

TextDrawBackgroundColor serves as the outline, whilst TextDrawBoxColor is the inner box.

The colour code which you are using is assigned for black, change "0x00000000" to "0xFFFFFFFF" and this will change the background to white.
I want make it invisible

Quote:
Originally Posted by adrianlouise
Посмотреть сообщение
Use This To Make it invisible TextDrawBackgroundColor(YMenuTD, 00);
its still black...
Reply
#5

Quote:
Originally Posted by LStrike17
Посмотреть сообщение
I want make it invisible
Use this colour "0xFFFFFF00"

Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works.
Reply
#6

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Use this colour "0xFFFFFF00"

Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works.
still background is black...

Код:
	TDInfo = TextDrawCreate(437.200042, 435.680023, "LD_SPAC:white");
	TextDrawLetterSize(TDInfo, 0.174797, 4.631999);
	TextDrawTextSize(TDInfo, -20.800035, 11.200028);
	TextDrawAlignment(TDInfo, 1);
	TextDrawColor(TDInfo, -1);
	TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
	TextDrawUseBox(TDInfo, true);
	TextDrawBoxColor(TDInfo, 0xFFFFFF00 );
	TextDrawSetShadow(TDInfo, 0);
	TextDrawSetOutline(TDInfo, 0);
	TextDrawFont(TDInfo, 5);
	TextDrawSetPreviewModel(TDInfo, 1239);
	TextDrawSetPreviewRot(TDInfo, 0.000000, 0.000000, 0.000000, 1.000000);
Reply
#7

Is it your intention to use

Код:
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
for another textdraw? If not, change the first value to TDInfo.
Reply
#8

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Is it your intention to use

Код:
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
for another textdraw? If not, change the first value to TDInfo.
lol thanks... i'm so silly.. rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)