Color box problem
#1

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

Set the background color to : 0x00000000

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

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

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

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

So yes, object visible, box around it to be invisible
Reply
#6

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

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!
Reply
#8

No worries . Glad I could help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)