TextDrawSetSelectable
From SA-MP Wiki
Sets the text draw to be selectable 1 or not 0
(Text:text, set)
| text | The textdraw id that should be made selectable. |
| set | Set the textdraw selectable (1) or non-selectable (0). By default this is 0. |
| Returns | This function doesn't return a specific value |
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/make all selectable", true)) { for(new i = 0; i < MAX_TEXT_DRAWS; i++) TextDrawSetSelectable(Text:i, 1); SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: All 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.
- SelectTextDraw: Enables the mouse, so the player can select a textdraw
- CancelSelectTextDraw: Cancel textdraw selection with the mouse
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerClickTextDraw: Called when a player clicks on a textdraw.
