PlayerTextDrawSetPreview - Transparent Box -
Mauricee - 08.03.2014
How Can I make the box of the following textdraw transparent?
Код:
DSModel = CreatePlayerTextDraw(playerid, 520.0, 260.0, "_");
PlayerTextDrawFont(playerid, DSModel, TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawUseBox(playerid, DSModel, 1);
PlayerTextDrawBoxColor(playerid, DSModel, 0x00000000);
PlayerTextDrawTextSize(playerid, DSModel, 80.0, 80.0);
PlayerTextDrawSetPreviewModel(playerid, DSModel, 411);
PlayerTextDrawSetPreviewRot(playerid, DSModel, -10.0, 0.0, -20.0, 1.0);
PlayerTextDrawSetPreviewVehCol(playerid, DSModel, 1, 1);
Re: PlayerTextDrawSetPreview - Transparent Box -
Bingo - 08.03.2014
Код:
TextDrawBoxColor(textdraw, 0x000000AA);
Use this.
Re: PlayerTextDrawSetPreview - Transparent Box -
RyanPetersons - 08.03.2014
And for seeing the textdraw
use
pawn Код:
TextDrawShowForPlayer function
Re: PlayerTextDrawSetPreview - Transparent Box -
Mauricee - 08.03.2014
@[vTc]Patroool: Nothing changed
@RyanPetersons: I use that function, because I see the big black box with an infernus in.
Re: PlayerTextDrawSetPreview - Transparent Box -
Bingo - 08.03.2014
If you set the transparency to 00,the textdraw will be invisible, So try with this might come up.
0xFFFFFF00
Set an higer value,example 88.(0xFFFFFF8
https://sampwiki.blast.hk/wiki/Colors_List
Re: PlayerTextDrawSetPreview - Transparent Box -
Mauricee - 08.03.2014
Nothing changed .... The box of infernus is still black
Re: PlayerTextDrawSetPreview - Transparent Box -
Bingo - 08.03.2014
Is that the codes you showed above?
Re: PlayerTextDrawSetPreview - Transparent Box -
Mauricee - 08.03.2014
Yes, I create the infernus-textdraw with the codes from the 1st post
Re: PlayerTextDrawSetPreview - Transparent Box -
Bingo - 08.03.2014
Well that is the color for textdraws. Transparency.
Re: PlayerTextDrawSetPreview - Transparent Box -
Mauricee - 08.03.2014
http://i.imgur.com/zYeCxV7.jpg ... The box is black
#Edit: Solved with
Код:
PlayerTextDrawBackgroundColor(playerid, DSModel, 0);