05.09.2018, 16:28
Okay now I am wondering how to detect ESC key there now 
I was almost sure it would work lol

I was almost sure it would work lol
To determin key presses for textdraws
use OnPlayerKeyStateChange(playerid, ......) newkeys <=> oldkeys dont forget to define that key also if you plan to use it (its called key mapping internal in to the server) |
i don't really undertand - can u help me
![]() |
new Text:SewRocks; //Textdraw
new PlayerText:EveryoneRocks[MAX_PLAYERS] //Player Textdraw
Originally Posted by wiki
When a player presses ESC to cancel selecting a textdraw, OnPlayerClickTextDraw is called with a textdraw ID of 'INVALID_TEXT_DRAW'. OnPlayerClickPlayerTextDraw won't be called also.
|
So you can't use OnPlayerClickPlayerTextDraw, you need to use OnPlayerClickTextDraw, and keep track of whether they are in a player textdraw menu, or a normal one via variables.
|