Textdraw
#1

Textdraw selectable bug..Its just select me two textdraw...
PHP код:
Box[13][playerid] = CreatePlayerTextDraw(playerid503.999938369.185211"Zjest");
    
PlayerTextDrawLetterSize(playeridBox[13][playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridBox[13][playerid], 1);
    
PlayerTextDrawColor(playeridBox[13][playerid], -1);
    
PlayerTextDrawSetShadow(playeridBox[13][playerid], 0);
    
PlayerTextDrawSetOutline(playeridBox[13][playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridBox[13][playerid], 51);
    
PlayerTextDrawFont(playeridBox[13][playerid], 1);
    
PlayerTextDrawSetProportional(playeridBox[13][playerid], 1);
    
PlayerTextDrawSetSelectable(playeridBox[13][playerid], true);
Box[15][playerid] = CreatePlayerTextDraw(playerid501.666717390.340667"Spat");
    
PlayerTextDrawLetterSize(playeridBox[15][playerid], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridBox[15][playerid], 1);
    
PlayerTextDrawColor(playeridBox[15][playerid], -1);
    
PlayerTextDrawSetShadow(playeridBox[15][playerid], 0);
    
PlayerTextDrawSetOutline(playeridBox[15][playerid], 1);
    
PlayerTextDrawBackgroundColor(playeridBox[15][playerid], 51);
    
PlayerTextDrawFont(playeridBox[15][playerid], 1);
    
PlayerTextDrawSetProportional(playeridBox[15][playerid], 1);
    
PlayerTextDrawSetSelectable(playeridBox[15][playerid], true); 
Reply
#2

It's a SA-MP bug tho , That Normal textdraws like Keywords , or boxes have a problem that they can be selected from a very far position, But there is a way to fix it,
Don't use a box textdraw when you want a box to be selected , Use TextDrawPreviewModel , aka Model in to it, and enter a Model id in it and change its size same as your box, Change its color to Black or whatever you want,
So by using Model in a textdraw the textdraw can only be selected within the size of the Model.

If you are using TDEditor will be lot easier and quicker.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)