Files

> > CS2D > Lua Scripts > [EngiN33R] UniMenu
Files overviewCS2D overviewLua Scripts overview

English [EngiN33R] UniMenu >

41 comments2 kb, 960 Downloads

old [EngiN33R] UniMenu

EngiN33R
Moderator Off Offline

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.

Documentation >


Leave feedback and report bugs, should any be found.
Approved by Seekay

Download Download

2 kb, 960 Downloads

Comments

41 comments
Page
To the start Previous 1 2 3 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

kerker
User Off Offline

Hmm. Nice!
I like it!

old

Mami Tomoe
User Off Offline

Useful!
I like it!

old

Gaios
Reviewer Off Offline

thanks
I like it!

old

VADemon
User Off Offline

As of version 2.0 use this code to test UniMenu:
1
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
Commands:
• uni_old
• uni_new
I like it!

old

Louie
User Off Offline

Thx, its very useful.
I like it!

old

Raaj Nadar
User Off Offline

Cool i am going to use in my admin script going to compact my script alot.
I like it!

old

mozilla1
User Off Offline

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.

old hu!?

AtomKuh
User Off Offline

user iBRhackCsD2servr has written
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 .


And you're a hacker
I like it!

old Mod/luas

iBRhackCsD2servr
BANNED Off Offline

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 .
I like it!

old

AtomKuh
User Off Offline

Great Work :p
I like it!

old

DevGru
User Off Offline

@user _MARKOS_: Your asshole.

File: Not bad, pretty good.
I like it!

old

Ahmad
User Off Offline

Helpfull.
I like it!

old

SmD
User Off Offline

nice!
I like it!

old

VADemon
User Off Offline

Good framework
I like it!

old

RedizGaming
GAME BANNED Off Offline

God Script
Ewsome
5/5
I Like It!
√
I like it!

old

Dead men
BANNED Off Offline

Great
I like it!

old

EngiN33R
Moderator Off Offline

user EngiN33R has written
Menus are opened by means of the unimenu function. It has the following arguments:
<snip>


If you want to open a menu that is in the menu table with the index 2 by pressing F4,

1
2
3
4
5
6
addhook("serveraction","openmenutwo")
function openmenutwo(id,a)
	if a==3 then
		unimenu(id,true,2,1)
	end
end

old

robed
User Off Offline

how do you open menu? do you write something on the say chat
?
I like it!

old

_MARKOS_
BANNED Off Offline

what mod?

old

EngiN33R
Moderator Off Offline

If you're using a menu that is specified in the menus table, you can just enter that menu's index in the menus table, so it would be something like
1
unimenu(id,true,1,1)

Try that.

Also, thank you everyone for the comments. It's nice to hear your scripts make other people's lives easier.
To the start Previous 1 2 3 Next To the start