Hide Selectable Textdraw When Press ESC
#1

Hi , i have a playertextdraw (( OnPlayerClickPlayerTextDraw(playerid, PlayerText: playertextid) ))

So i want to if player pressed esc botton textdrws get hide , how can i detecate he pressed esc?
Reply
#2

Hello PoniStar, OnPlayerClickPlayerTextDraw isn't called when pressing ESC, only OnPlayerClickTextDraw do that, try to use some global variable and put that below the callfunction OnPlayerClickTextDraw.
PHP код:
if(clickedid == Text:INVALID_TEXT_DRAW) {
   
CancelSelectTextDrawplayerid );
   
PlayerTextDrawHide(playerid, ... );

Reply
#3

Thnx i will check that !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)