SA-MP Forums Archive
Textdraw - 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: Textdraw (/showthread.php?tid=640473)



Textdraw - IchNar - 03.09.2017

Textdraw selectable bug..Its just select me two textdraw...
PHP код:
Box[13][playerid] = CreatePlayerTextDraw(playerid, 503.999938, 369.185211, "Zjest");
    
PlayerTextDrawLetterSize(playerid, Box[13][playerid], 0.449999, 1.600000);
    
PlayerTextDrawAlignment(playerid, Box[13][playerid], 1);
    
PlayerTextDrawColor(playerid, Box[13][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, Box[13][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, Box[13][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, Box[13][playerid], 51);
    
PlayerTextDrawFont(playerid, Box[13][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, Box[13][playerid], 1);
    
PlayerTextDrawSetSelectable(playerid, Box[13][playerid], true);
Box[15][playerid] = CreatePlayerTextDraw(playerid, 501.666717, 390.340667, "Spat");
    
PlayerTextDrawLetterSize(playerid, Box[15][playerid], 0.449999, 1.600000);
    
PlayerTextDrawAlignment(playerid, Box[15][playerid], 1);
    
PlayerTextDrawColor(playerid, Box[15][playerid], -1);
    
PlayerTextDrawSetShadow(playerid, Box[15][playerid], 0);
    
PlayerTextDrawSetOutline(playerid, Box[15][playerid], 1);
    
PlayerTextDrawBackgroundColor(playerid, Box[15][playerid], 51);
    
PlayerTextDrawFont(playerid, Box[15][playerid], 1);
    
PlayerTextDrawSetProportional(playerid, Box[15][playerid], 1);
    
PlayerTextDrawSetSelectable(playerid, Box[15][playerid], true); 



Re: Textdraw - FuNkYTheGreat - 03.09.2017

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.