TextDraw box color - 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 box color (
/showthread.php?tid=561060)
TextDraw box color -
gilhrpenner - 31.01.2015
Hi there, by any chance I can change the TextDraw Box Color?
I would like it to be transparent but it seems I'm doing something wrong or it's just not possible.
Thanks anyways.
here's my code
PHP код:
Textdraw6 = TextDrawCreate(170.000000, 170.000000, "character");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 5);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);//I tried changing here
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 0);//And here
TextDrawTextSize(Textdraw6, 90.000000, 120.000000);
TextDrawSetSelectable(Textdraw6, 1);
What I would like it to be transparent is the black box around CJ.
Link to the img
Re: TextDraw box color -
1fret - 31.01.2015
Quote:
Originally Posted by gilhrpenner
Hi there, by any chance I can change the TextDraw Box Color?
I would like it to be transparent but it seems I'm doing something wrong or it's just not possible.
Thanks anyways.
here's my code
PHP код:
Textdraw6 = TextDrawCreate(170.000000, 170.000000, "character");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 5);
TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
TextDrawColor(Textdraw6, -1);//I tried changing here
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 0);//And here
TextDrawTextSize(Textdraw6, 90.000000, 120.000000);
TextDrawSetSelectable(Textdraw6, 1);
What I would like it to be transparent is the black box around CJ.
Link to the img
|
try changing this line
pawn Код:
TextDrawBackgroundColor(Textdraw6, /*the color here\*);
Re: TextDraw box color -
gilhrpenner - 31.01.2015
Thank you, I don't know hoe vome I didn't think about it before lol