[EngiN33R] UniMenu 
41 comments This is a universal utility script, which allows you to easily create multi-page menus and assign any functions to their buttons. Menus can be created both out of the 'menus' table and dynamically, to allow for changing variables. The documentation is quite extensive and exhaustive, so it should answer most of the how-to questions.
Leave feedback and report bugs, should any be found.
Leave feedback and report bugs, should any be found.

Comments
41 commentsLog in!
You need to log in to be able to write comments!Log in

As of version 2.0 use this code to test UniMenu:
Commands:
uni_old
uni_new
Code:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("say", "asay")
function asay(id, txt)
if txt == "uni_old" then
unimenu(id, true, "example_menu_old", 1)
elseif txt == "uni_new" then
unimenu(id, true, "example_menu_new", 1)
end
end
function asay(id, txt)
if txt == "uni_old" then
unimenu(id, true, "example_menu_old", 1)
elseif txt == "uni_new" then
unimenu(id, true, "example_menu_new", 1)
end
end
Commands:


I did something like this before, with a var controling the page, but that is a nice idea to make infinite menus, since this is hard and take your time to make.
04.09.12 02:35:27 pm


Engi33R can only make good scripts we dont say him he know this .
All scripts who he make was good . Some with little bugs xd .
All scripts who he make was good . Some with little bugs xd .
And you're a hacker

27.08.12 03:28:20 pm

Engi33R can only make good scripts we dont say him he know this .
All scripts who he make was good . Some with little bugs xd .
All scripts who he make was good . Some with little bugs xd .

Menus are opened by means of the unimenu function. It has the following arguments:
<snip>
<snip>
If you want to open a menu that is in the menu table with the index 2 by pressing F4,
Code:
1
2
3
4
5
6
2
3
4
5
6
addhook("serveraction","openmenutwo")
function openmenutwo(id,a)
if a==3 then
unimenu(id,true,2,1)
end
end
function openmenutwo(id,a)
if a==3 then
unimenu(id,true,2,1)
end
end