I have created all textdraws but simply I make them selectable but ingame I cant click on them.
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Select1Par)
{
SetPlayerPos(playerid, 1630.2030,-2328.9673,13.5469);
SetPlayerFacingAngle(playerid, 0.9392);
}
else if(clickedid == Select2Par)
{
SetPlayerPos(playerid, -1424.6083, -290.9622, 14.1484);
SetPlayerFacingAngle(playerid, 134.9570);
}
else if(clickedid == Select3Par)
{
SetPlayerPos(playerid, 1688.7990, 1447.7753, 10.7675);
SetPlayerFacingAngle(playerid, 267.3902);
}
else if(clickedid == Select4Par)
{
SetPlayerPos(playerid, 1688.7990, 1447.7753, 10.7675);
SetPlayerFacingAngle(playerid, 267.3902);
}
else if(clickedid == Select5Par)
{
SetPlayerPos(playerid, 1688.7990, 1447.7753, 10.7675);
SetPlayerFacingAngle(playerid, 267.3902);
}
return 1;
}
PHP код:
asa = TextDrawCreate(231 ,308 , "asdadsadsadsdsads");
TextDrawFont(asa , 1);
TextDrawLetterSize(asa ,0.5,0.8);
TextDrawColor(asa , 0x687872FF);
TextDrawSetOutline(asa , true);
TextDrawSetProportional(asa , true);
TextDrawSetShadow(asa , 1);
TextDrawTextSize(asa, 4.0,7.6);
TextDrawNAZIV = TextDrawCreate(502.000000, 284.486663, "usebox");
TextDrawLetterSize(TextDrawNAZIV, 0.000000, 13.040369);
TextDrawTextSize(TextDrawNAZIV, 201.199996, 0.000000);
TextDrawAlignment(TextDrawNAZIV, 1);
TextDrawColor(TextDrawNAZIV, 0);
TextDrawUseBox(TextDrawNAZIV, true);
TextDrawBoxColor(TextDrawNAZIV, 102);
TextDrawSetShadow(TextDrawNAZIV, 0);
TextDrawSetOutline(TextDrawNAZIV, 0);
TextDrawFont(TextDrawNAZIV, 0);
TextDrawBOX = TextDrawCreate(286.399902, 272.533111, "hggh");
TextDrawLetterSize(TextDrawBOX, 0.449999, 1.600000);
TextDrawAlignment(TextDrawBOX, 1);
TextDrawColor(TextDrawBOX, -1);
TextDrawSetShadow(TextDrawBOX, 0);
TextDrawSetOutline(TextDrawBOX, 1);
TextDrawBackgroundColor(TextDrawBOX, 51);
TextDrawFont(TextDrawBOX, 3);
TextDrawSetProportional(TextDrawBOX, 1);
Select1Par = TextDrawCreate(469.200012, 302.406677, "usebox1");
TextDrawLetterSize(Select1Par, 0.000000, 1.591478);
TextDrawTextSize(Select1Par, 224.399993, 0.000000);
TextDrawAlignment(Select1Par, 1);
TextDrawColor(Select1Par, 0);
TextDrawUseBox(Select1Par, true);
TextDrawBoxColor(Select1Par, 102);
TextDrawSetShadow(Select1Par, 0);
TextDrawSetOutline(Select1Par, 0);
TextDrawFont(Select1Par, 0);
TextDrawSetSelectable(Select1Par, true);
Select2Par = TextDrawCreate(469.200012, 322.566650, "usebox2");
TextDrawLetterSize(Select2Par, 0.000000, 1.093706);
TextDrawTextSize(Select2Par, 225.199996, 0.000000);
TextDrawAlignment(Select2Par, 1);
TextDrawColor(Select2Par, 0);
TextDrawUseBox(Select2Par, true);
TextDrawBoxColor(Select2Par, 102);
TextDrawSetShadow(Select2Par, 0);
TextDrawSetOutline(Select2Par, 0);
TextDrawFont(Select2Par, 0);
TextDrawSetSelectable(Select2Par, true);
Select3Par = TextDrawCreate(466.799987, 337.500000, "usebox3");
TextDrawLetterSize(Select3Par, 0.000000, 0.844812);
TextDrawTextSize(Select3Par, 226.799987, 0.000000);
TextDrawAlignment(Select3Par, 1);
TextDrawColor(Select3Par, 0);
TextDrawUseBox(Select3Par, true);
TextDrawBoxColor(Select3Par, 102);
TextDrawSetShadow(Select3Par, 0);
TextDrawSetOutline(Select3Par, 0);
TextDrawFont(Select3Par, 0);
TextDrawSetSelectable(Select3Par, true);
Select4Par = TextDrawCreate(467.600006, 350.193328, "usebox4");
TextDrawLetterSize(Select4Par, 0.000000, 1.176666);
TextDrawTextSize(Select4Par, 226.000000, 0.000000);
TextDrawAlignment(Select4Par, 1);
TextDrawColor(Select4Par, 0);
TextDrawUseBox(Select4Par, true);
TextDrawBoxColor(Select4Par, 102);
TextDrawSetShadow(Select4Par, 0);
TextDrawSetOutline(Select4Par, 0);
TextDrawFont(Select4Par, 0);
TextDrawSetSelectable(Select4Par, true);
Select5Par = TextDrawCreate(468.399993, 364.380004, "usebox5");
TextDrawLetterSize(Select5Par, 0.000000, 1.508518);
TextDrawTextSize(Select5Par, 226.000000, 0.000000);
TextDrawAlignment(Select5Par, 1);
TextDrawColor(Select5Par, 0);
TextDrawUseBox(Select5Par, true);
TextDrawBoxColor(Select5Par, 102);
TextDrawSetShadow(Select5Par, 0);
TextDrawSetOutline(Select5Par, 0);
TextDrawFont(Select5Par, 0);
TextDrawSetSelectable(Select5Par, true);
OFC I defined them, and show them to player but they cant click on textdraws.
I used iPLEOMAX textdraw maker, if you say that is not correctly how make correctly?