[REQ] Hide Textdraw.
#1

I got a question. How to make an function can be hide some textdraw when player press ESC button. Thanks
Reply
#2

If you want to do it when SelectTextDraw is open it's easy:

Go to your callback OnPlayerClickTextDraw, and use, if(clickedid == INVALID_TEXTDRAW_ID) and then use TextDrawHideForPlayer

If you want to do this when selectTextDraw is closed, don't use ESC, it will open the menu of the player, you can use OnPlayerKeyStateChange and do this (Example here with key 'N'):

if(newkeys==KEY_NO)
{
TextDrawHideForPlayer(playerid, yourtextdraw);
}

Hope i've helped you
Reply
#3

No. I Mean key ESC same DIALOG can be closed by this button. -_-. Any idea ?
Reply
#4

No, there is no way you can detect if a player pressed ESC.
Reply
#5

k thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)