SA-MP Forums Archive
Color box problem - 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: Color box problem (/showthread.php?tid=599581)



Color box problem - TwinkiDaBoss - 27.01.2016

Alright so anyone came across this issue?

Basically, textdraw is not visible until you hover your mouse over it, Im trying to make it basically just the box itself to be invisible while Object Model be visible at all times

PHP код:
Txd_InvTest[playerid] = CreatePlayerTextDraw(playerid,209.000000131.000000"New Textdraw");
    
PlayerTextDrawAlignment(playerid,Txd_InvTest[playerid], 2);
    
PlayerTextDrawBackgroundColor(playerid,Txd_InvTest[playerid], 0);
    
PlayerTextDrawFont(playerid,Txd_InvTest[playerid], 5);
    
PlayerTextDrawLetterSize(playerid,Txd_InvTest[playerid], 0.9399994.699999);
    
PlayerTextDrawColor(playerid,Txd_InvTest[playerid], 0);
    
PlayerTextDrawSetOutline(playerid,Txd_InvTest[playerid], 0);
    
PlayerTextDrawSetProportional(playerid,Txd_InvTest[playerid], 0);
    
PlayerTextDrawSetShadow(playerid,Txd_InvTest[playerid], 1);
    
PlayerTextDrawUseBox(playerid,Txd_InvTest[playerid], 1);
    
PlayerTextDrawBoxColor(playerid,Txd_InvTest[playerid], 0x00000000);
    
PlayerTextDrawTextSize(playerid,Txd_InvTest[playerid], 60.00000044.000000);
    
PlayerTextDrawSetPreviewModel(playeridTxd_InvTest[playerid], 2814);
    
PlayerTextDrawSetPreviewRot(playeridTxd_InvTest[playerid], 300.0000000.000000270.0000001.000000);
    
PlayerTextDrawSetSelectable(playerid,Txd_InvTest[playerid], 1); 



Re: Color box problem - Lucky13 - 27.01.2016

Set the background color to : 0x00000000

Код:
PlayerTextDrawBackgroundColor(playerid,Txd_InvTest[playerid], 0x00000000);



Re: Color box problem - TwinkiDaBoss - 27.01.2016

Quote:
Originally Posted by Lucky13
Посмотреть сообщение
Set the background color to : 0x00000000

Код:
PlayerTextDrawBackgroundColor(playerid,Txd_InvTest[playerid], 0x00000000);
Box is still invisible when shown. I want of it to be visible at all times just not the box visible at all


Re: Color box problem - Lucky13 - 27.01.2016

You want the Preview Model to be visible and the box invisible?


Re: Color box problem - TwinkiDaBoss - 27.01.2016

Yes basically. Sorry for late response just got back home.

So yes, object visible, box around it to be invisible


Re: Color box problem - Lucky13 - 27.01.2016

It's all fine. Well I also encountered that problem a few weeks ago, and I fixed it by setting this:

PlayerTextDrawBackgroundColor = 0x00000000
PlayerTextDrawTextColor = -1

And I've deleted the Box.


Re: Color box problem - TwinkiDaBoss - 27.01.2016

Quote:
Originally Posted by Lucky13
Посмотреть сообщение
It's all fine. Well I also encountered that problem a few weeks ago, and I fixed it by setting this:

PlayerTextDrawBackgroundColor = 0x00000000
PlayerTextDrawTextColor = -1

And I've deleted the Box.
Ahaaaaaaaaaaaaaa! Thanks mate, highly appreciated! +rep
My PlayerTextDrawColor was 0, changed it to -1 works like a charm!


Re: Color box problem - Lucky13 - 27.01.2016

No worries . Glad I could help you.