test[playerid] = CreatePlayerTextDraw(playerid, 456.000000, 161.000000, "X");
PlayerTextDrawAlignment(playerid, test[playerid], 2);
PlayerTextDrawBackgroundColor(playerid, test[playerid], 255);
PlayerTextDrawFont(playerid, test[playerid], 1);
PlayerTextDrawLetterSize(playerid, test[playerid], 0.390000, 1.100000);
PlayerTextDrawColor(playerid, test[playerid], -1);
PlayerTextDrawSetOutline(playerid, test[playerid], 0);
PlayerTextDrawSetProportional(playerid, test[playerid], 1);
PlayerTextDrawSetShadow(playerid, test[playerid], 0);
PlayerTextDrawSetSelectable(playerid, test[playerid], 1);
test2[playerid] = CreatePlayerTextDraw(playerid, 452.000000, 161.000000, "ld_dual:white");
PlayerTextDrawAlignment(playerid, test2[playerid], 2);
PlayerTextDrawBackgroundColor(playerid, test2[playerid], 255);
PlayerTextDrawFont(playerid, test2[playerid], 4);
PlayerTextDrawLetterSize(playerid, test2[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, test2[playerid], -1238555905);
PlayerTextDrawSetOutline(playerid, test2[playerid], 0);
PlayerTextDrawSetProportional(playerid, test2[playerid], 1);
PlayerTextDrawSetShadow(playerid, test2[playerid], 1);
PlayerTextDrawUseBox(playerid, test2[playerid], 1);
PlayerTextDrawBoxColor(playerid, test2[playerid], 255);
PlayerTextDrawTextSize(playerid, test2[playerid], 17.000000, 11.000000);
PlayerTextDrawSetSelectable(playerid, test2[playerid], 0);
Clickable area is defined by TextDrawTextSize. My advice is to create a box behind the items. You can set the color of the box to an invisible one. |