Jump to content

Template v3.1

   (3 reviews)

2 Screenshots


Download this file

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.




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.

Share this comment


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 !

Share this comment


Link to comment
Share on other sites

Just learning to make a script do not bother to share your skills that are not useful.

Your script is really bad.

Share this comment


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...