SA-MP Forums Archive
Cancelling SelectObject(playerid); - 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: Cancelling SelectObject(playerid); (/showthread.php?tid=429864)



Cancelling SelectObject(playerid); - Redgie - 11.04.2013

Is this possible?

I'm using the SelectObject() environment to allow a user to choose an object to pick up, but short of using EditObject (Which is not required in this instance) there doesn't seem to be any other way of cancelling the SelectObject() mode?


Re: Cancelling SelectObject(playerid); - [KHK]Khalid - 11.04.2013

I think CancelSelectTextDraw can do the job.


Re: Cancelling SelectObject(playerid); - Pottus - 11.04.2013

You want CancelEdit(playerid);


Re: Cancelling SelectObject(playerid); - Redgie - 11.04.2013

Perfect, that does the trick. Thanks .

EDIT: How I didn't see CancelEdit I haven't the foggiest...though both answers did work!