SA-MP Forums Archive
Preselect menu item - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Preselect menu item (/showthread.php?tid=92705)



Preselect menu item - Programie - 21.08.2009

Hi

I created a menu and now want to preselect the menu item which will be selected when the menu is shown to the player.
But the problem: I don't know how I can make it.

Maybe anyonealready made this and can help me.


Re: Preselect menu item - James_Alex - 21.08.2009

use "OnPlayerSelectMenuRow"
https://sampwiki.blast.hk/wiki/OnPlayerSelectedMenuRow


Re: Preselect menu item - Programie - 21.08.2009

Quote:
Originally Posted by ► James_Alex
But this is to get the selected row.
I want to select a row via the script so the player don't have to scroll every time from the top to the position.