Annoying textdraw
#1

I have a little problem with the textdraw model preview, I can't hide the black background Im not sure if I have to set a color or something else.
Thanks in advance.
Reply
#2

Screenshots and/or code?
Reply
#3

Quote:
Originally Posted by Ayumi
Посмотреть сообщение
Screenshots and/or code?
I couldn't post the code because I posted this through my phone so:
pawn Код:
WS[18] = TextDrawCreate(540.000000, 350.000000, "_");
    TextDrawFont(WS[18], 5);
    TextDrawBackgroundColor(WS[18], 255);
    TextDrawTextSize(WS[18], 98.000000, 99.000000);
    TextDrawUseBox(WS[18], 1);
    TextDrawBoxColor(WS[18], 255);
    TextDrawSetPreviewModel(WS[18], 411);
    TextDrawSetPreviewVehCol(WS[18], 3, 3);
    TextDrawSetPreviewRot(WS[18], -16.000000, 0.000000, -55.000000, 1.000000);
Reply
#4

I believe you have to change the color of the TextDrawBackground
Reply
#5

TextDrawHideForPlayer
Reply
#6

Quote:
Originally Posted by Jankingston
Посмотреть сообщение
TextDrawHideForPlayer
It would hide the whole textdraw, not the background.


Try this
pawn Код:
TextDrawBackgroundColor(WS[18], 0x00000055);
Reply
#7

Quote:
Originally Posted by LeMoi
Посмотреть сообщение
I believe you have to change the color of the TextDrawBackground
Quote:
Originally Posted by LeMoi
Посмотреть сообщение
It would hide the whole textdraw, not the background.
Try this
pawn Код:
TextDrawBackgroundColor(WS[18], 0x00000055);
Both of you are right! I just used 0xFFFFFF00 instead of yours, anyway thank you for the help! I'm unable to rep+ you because I'm with negative rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)