Jump to content

Templates

Sign in to follow this  

5 files

  1. Simple Menu Template v2

    How to use:
    - It's simple, no need to code a menu too hard and spam alot of line. Just add "Name" and "Handler".. psstt You can add submenu too.
     
    -- CurrentMenuCtl: Control Current Menu. -- If CtlArgs is true, then current menu will be remove. -- If CtlArgs is supplied with String, it will change current menu name to CtlArgs. -- If CtlArgs was nil, then return current menu name. function CurrentMenuCtl(CtlArgs) if type(CtlArgs) == "boolean" and CtlArgs == true then table.remove(mControl[1], _opt) table.remove(mControl[2], _opt) return true end if CtlArgs ~= nil then -- If name is passed, then change the menu name else return menu name. mControl[1][_opt] = CtlArgs end return mControl[1][_opt] end -- Follow the example below, how to use it ! -- Before using function below, it needs to initialize first. function God() gg.alert("God Mode Activated !") end function InfinityAmmo() gg.alert("Infinity Ammo Activated !") end -- Menu Structure MyMenu = { "Main Menu", -- Menu Title "ESP", function() gg.alert("ESP Activated !") end, "Wallhack + Color", { -- Button Name "Wallhack Selection", -- Menu Title "Snapdragon 625+", function() gg.alert("Snapdragon 625+ Activated !") end, -- Button Name, and Handler Function "Snapdragon 625+", function() gg.alert("Snapdragon 625+ Activated !") end, -- Button Name, and Handler Function "Snapdragon 625+", function() gg.alert("Snapdragon 625+ Activated !") end, -- Button Name, and Handler Function "Color", { -- Button Name "Color Selection", -- Menu Title "Red Color", function() gg.alert("Red Color Activated !") end, -- Button Name, and Handler Function "Green Color", function() gg.alert("Green Color Activated !") end, -- Button Name, and Handler Function "Rainbow Color", function() gg.alert("Rainbow Color Activated !") end, -- Button Name, and Handler Function } }, -- Menu Title "No-Clip", function() gg.alert("No-Clip Activated !") end, -- Button Name, and Handler Function "God Mode", God, -- Button Name, and Handler Function "Infinity Ammo", InfinityAmmo, -- Button Name, and Handler Function "Change Name", function() Name = "Sup Bro !" CurrentMenuCtl(Name) gg.alert("Changed Name To: "..CurrentMenuCtl()) end, -- Check out documentation on CurrentMenuCtl function to know what it is. "Remove Myself", function() CurrentMenuCtl(true) end -- Check out documentation on CurrentMenuCtl function to know what it is. }  
    Please comment below to if you not understand some parts of script.

    1829 downloads

       (0 reviews)

    2 comments

    Updated

  2. Error handling for GG API functions template

    Note:
      This file is intended to be used by script developers.
      If you don't develop scripts or don't know what it is, ignore this file.
    Purpose: 
      Simplify error handling for GG API functions that may return a string with error description.
    Description:
      The file consists of two main functions:
        - "setErrorHandler" function is used to modify particular function from gg table, so that when it returns a string, desired error handling function will be called and string with error description will be passed to it as argument. This function should only be used on GG API functions that may return a string with error (there is a list of these functions in a file);
        - "defaultHandler" function is an example of error handling function.
      There is also "testError" function added to gg table (commented by default). It "simulates" regular function from GG API that has returned a string with error, used for testing.
    How to use:
      1. Include contents of the file at the start of your script.
      2. Write error handling functions (or use default one). Handling function should accept 1 argument - a string with error description (see "defaultHandler" function).
      3. Use "setErrorHandler" function to attach error handling function to GG API function (see examples below).
      4. Repeat step 3 until handlers for all desired functions have been set.
    Examples:
    -- Custom error handling function local function myHandler(errorText) gg.toast('Whoops, looks like something went wrong', true) gg.toast('Mysterious error: ' .. errorText) print('Description of the error that has occurred during script execution:\n' .. errorText) end -- Using default handling function setErrorHandler('getResults', defaultHandler) -- Using custom handling function setErrorHandler('addListItems', myHandler)  

    308 downloads

       (1 review)

    0 comments

    Updated

  3. [A New <Gui> Design]

    New Gui: gg.Alert Gui
    Make Your Script be different
    I made this because i think gg.choose or other can't be that beautiful,like:
    when you use gg.choice too many times,you'll think that it's kinda ugly?
    And this,can make your script be not simple.
    You can use arrow key (< >) to control the function you want
    Use ( [Select] ) Button to select function
    (BTW i didn't encrypt it)
     
    How to convert Normal Script to New Gui
    (If you don't know how to use it)
    (Video link)
     
     
    Update Log:
    V1.0:
    +  Control with using (< >),( [Select] ) button
     
    V2.0:
    + auto create a ( [■]Exit[■] ) for you ( Can enable/disable on settings)
     Some Garbage  code
     
    V3.0:
    + Always Showup Word option on settings
    No more Garbage Code
     
    Explore the Script yourself
    (Recommend coder to use it)
    (Who on earth care is it garbage or not)

    492 downloads

       (0 reviews)

    0 comments

    Updated

  4. Time Script

    Time Script you can use for your own script, put in gg.toast, gg.alert, print and more.

    480 downloads

       (0 reviews)

    1 comment

    Submitted

  5. Simple Hack Script by Backlift

    This is a Simple hack script.
    Purpose of this script is mostly a source code for understanding lua scripts and making scripts for other games based on it.
    It's intentionally with some unnecessary commands, use this as a manual.
     
     

    2923 downloads

       (0 reviews)

    0 comments

    Updated

Sign in to follow this  


  • What virtual space do you use?   42443 members have voted

    1. 1. What virtual space do you use?


      • Parallel Space (best choice)
      • VirtualXposed
      • Parallel Space Lite
      • GO Multiple
      • Dr. Clone
      • Virtual Space
      • ES Parallel Accounts
      • NoxApp+
      • DualSpace
      • Octopus
      • AppBox
      • DualSpace Blue
      • DualSpace Lite
      • 2Face
      • Other virtual space
      • I have a root
      • Multiple Space
      • clonneapp
      • Parallel Accounts
      • APP Cloner
      • App Hider
      • Calculator+
      • Multi
    2. 2. Do you use the Internet?


      • No, I don't.
      • Yes, I do.

    Please sign in or register to vote in this poll. View topic
×