Escaping 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: Escaping textdraws (
/showthread.php?tid=639774)
Escaping textdraws -
iKevin - 23.08.2017
well i've made a system with textdraws, now when i hit the command that hides all textdraws i have to press ESC again to leave the mouse cursor mode. can i do that scriptwise so it does it automatically? im sure theres a function and i just dont know it
Re: Escaping textdraws -
IstuntmanI - 23.08.2017
Sure !
You enabled it with
PHP код:
SelectTextDraw( playerid );
To cancel that mode just use
PHP код:
CancelSelectTextDraw( playerid );
So you already probably knew about SelectTextDraw. If you want to know more about certain functions/callbacks/features you can check the wiki:
https://sampwiki.blast.hk/wiki/SelectTextDraw . The "CancelSelectTextDraw" function is suggested under "Related Functions".