Posts: 1,219
Threads: 51
Joined: Jul 2012
Here, a list of detectable keys:
https://sampwiki.blast.hk/wiki/Keys
ESC is not one of those.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
If you're talking about pressing ESC while SelectTextDraw is enabled, check if the clicked TextDraw ID is invalid under OnPlayerClickTextDraw and then hide the desired TextDraws (use a variable to detect which set the player is interacting with).
Posts: 83
Threads: 29
Joined: Oct 2016
Reputation:
0
Can you give me an example code does not?
Posts: 1,219
Threads: 51
Joined: Jul 2012
Sorry for providing half true information
Quote:
Originally Posted by SickAttack
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid == INVALID_TEXTDRAW_ID) { // Hide here } return 1; }
|
Does it just detect ESC or would the same happen if he pressed KEY_NO for example?