PlayerTextDrawSetPreview - Transparent Box
#1

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

Код:
TextDrawBoxColor(textdraw, 0x000000AA);
Use this.
Reply
#3

And for seeing the textdraw
use
pawn Код:
TextDrawShowForPlayer function
Reply
#4

@[vTc]Patroool: Nothing changed
@RyanPetersons: I use that function, because I see the big black box with an infernus in.
Reply
#5

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
Reply
#6

Nothing changed .... The box of infernus is still black
Reply
#7

Is that the codes you showed above?
Reply
#8

Yes, I create the infernus-textdraw with the codes from the 1st post
Reply
#9

Well that is the color for textdraws. Transparency.
Reply
#10

http://i.imgur.com/zYeCxV7.jpg ... The box is black

#Edit: Solved with

Код:
PlayerTextDrawBackgroundColor(playerid, DSModel, 0);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)