SA-MP Forums Archive
[REP++] Question about selectable textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [REP++] Question about selectable textdraws (/showthread.php?tid=633234)



[REP++] Question about selectable textdraws - buburuzu19 - 27.04.2017

How can i detect when a player presses "ESC" and he is in td selection? My textdraws are playertextdraws and as far as i read from the samp wiki you can't detect whenever someone presses ESC for playertextdraws selection.


Re: [REP++] Question about selectable textdraws - jlalt - 27.04.2017

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw

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.