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
i don't really undertand - can u help me i want my testdraw in OnPlayerClickPlayerTextDraw close when i press ESC
|
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.
|