09.01.2019, 13:15
Hello PoniStar, OnPlayerClickPlayerTextDraw isn't called when pressing ESC, only OnPlayerClickTextDraw do that, try to use some global variable and put that below the callfunction OnPlayerClickTextDraw.
PHP код:
if(clickedid == Text:INVALID_TEXT_DRAW) {
CancelSelectTextDraw( playerid );
PlayerTextDrawHide(playerid, ... );
}