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);
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. |
Use This To Make it invisible TextDrawBackgroundColor(YMenuTD, 00);
|
Use this colour "0xFFFFFF00"
Also, check out: https://sampwiki.blast.hk/wiki/Colors_List for an explanation of how colour transparency works. |
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);
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 );
Is it your intention to use
Код:
TextDrawBackgroundColor(YMenuTD, 0xFFFFFF00 ); |