Textdraw is highlighting
#1

Hello fellow members,
I have researched around, but I can't find the proper fix for this issue.

I use the selectable textdraws, but when I select like the second one this first one is getting highlighting too, even when it's not supposed to.

Some people say i need to create an invisible box, but what exactly is that supposed to mean?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=557459
Reply
#3

Yes, you can create an invisible box by setting the color at 0.
also make sure the textdrawsize is set correct, make sure none of the x or y sizes are 0
Reply
#4

So will this code be correct:
pawn Код:
Textdraws[playerid][25] = TextDrawCreate(141.347213, 308.183746, "Russia");
    TextDrawLetterSize(Textdraws[playerid][25], 0.296279, 1.599997);
    TextDrawAlignment(Textdraws[playerid][25], 2);
    TextDrawColor(Textdraws[playerid][25], -1);
    TextDrawSetShadow(Textdraws[playerid][25], 0);
    TextDrawSetOutline(Textdraws[playerid][25], 1);
    TextDrawBackgroundColor(Textdraws[playerid][25], 51);
    TextDrawFont(Textdraws[playerid][25], 2);
    TextDrawSetProportional(Textdraws[playerid][25], 1);
    TextDrawSetSelectable(Textdraws[playerid][25], true);
   
    TextDrawUseBox(Textdraws[playerid][25], 1); //The box
    TextDrawTextSize(Textdraws[playerid][25], 141.347213, 308.183746); //This
    TextDrawBoxColor(Textdraws[playerid][25], 0); //That
Reply
#5

i guess
Reply
#6

I don't know, it doesn't seem to be working correctly
Reply
#7

Help?
Reply
#8

If it is not working after using boxes, then you have the wrong size of box. Try to change the color of the box to something visible, so you can see what you're working with. Then once you have found the correct size, change the color back to invisible.

It took me like a whole hour to find a good size for Vassilis' textdraws, but then again, I had to make my own code to change the color of the box and change the size of the box which was inclusive of at least 20 minutes.

Or you could use iPleoMax's textdraw editor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)