Jump to content

Template v3.1

   (3 reviews)

2 Screenshots

About This File

Tired of copy pasting your menu code over and over ?,
Wanna ready to use menu ?,
Need switch support and easy menu ?

Here,
Firstly, you need a most basic lua knowledge such array to use this template.
I already put example into script, so enjoy !

I hope this will help most user struggling with thousand spam of line contain the same thing.
Don't forget to press ❤ button below !
 

Formatting / Usage:

...
MyMenu = {
 -- { Menu Title: String, Menu Type: Boolean },
	{"Template v3 - saiaapiz", true}, {
    -- { Button Name: String, Button Content: table or function }
		"Destroy Earth !", function() gg.alert("We still need earth, aborting ..") end,
    -- {"Button Name / Submenu Name", Table: Menu Structure }
		"What console did you like ?", {
      		-- Submenu, please look at example how to utilize it.
      	}
...
-- Don't forget to include initMenu function code into your project.


Example of usage: 
Templates for Using Offsets (#68um1uri) by @AKRAMRAZA

 


What's New in Version v3.1   See changelog

Released

- Add Switch System support.

 Share


User Feedback

Recommended Comments

for _=1, #Menu - 0.5 do
  if _ % 2 == 1 then
    -- ...
  end
end

is identical to

for _ = 1, #Menu - 0.5, 2 do
  -- ...
end

but second option is more effective and clear.

Link to comment
Share on other sites

10 hours ago, CmP said:

for _=1, #Menu - 0.5 do
  if _ % 2 == 1 then
    -- ...
  end
end

is identical to


for _ = 1, #Menu - 0.5, 2 do
  -- ...
end

but second option is more effective and clear.

Great, Thanks !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.