PlayerTextDrawSetSelectable

PlayerTextDrawSetSelectable

Description:
Function PlayerTextDrawSetSelectable toggles whether a player-textdraw can be selected or not.
Function PlayerTextDrawSetSelectable was added in 0.3e and will not work in earlier versions!
PlayerTextDrawSetSelectable MUST be used BEFORE the textdraw is shown to the player.
Use PlayerTextDrawTextSize to define the clickable area.


Parameters:
(playerid, PlayerText:text, set)
int playerid The ID of the player whose player-textdraw to set the selectability of.
int text The ID of the player-textdraw to set the selectability of.
bool set Set the player-textdraw selectable (1) or non-selectable (0). NOTE: By default this is 0.


Return Values:
This function does not return any specific values.


Examples:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/select_ptd", true))
    {
        for(new i = 0; i < MAX_PLAYER_TEXT_DRAWS; i++) PlayerTextDrawSetSelectable(playerid, PlayerText:i, 1);
        SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: All player-textdraws can be selected now!");
        return 1;
    }
    return 0;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.