Jump to content
  • 0

Help minimize script lua GG


Agutgc

Question

3 answers to this question

Recommended Posts

 

 

use the menu to call a function. You can use gg.choice or gg.multchoice. but do not use "goto" to call the function. the button on my wrath contain the exit function to turn off the script, and the nil will be the minimize, along with the other functions. example to minimize that I use:

[...]

function open()
menu = gg.choice({'Time jump ✅','hack 1✅','hack 2✅','[EXIT]'},nil , 'cheater = BAN.')
    if menu == nil then exit()
    end
    if menu == 1 then TJ()
    end
    if menu == 2 then h1()
    end
    if menu == 3 then h2()
    end
    if menu == 4 then exit2()
    end
    menuk = -1
  end
  function TJ()
  gg.timeJump('42345678')
  gg.toast('time jump!')
  end

 

function exit()
  gg.toast('Script Minimized')
  end

 

 

function exit2()
  gg.toast('Script Shutdown')

  os.exit()
  end

function h1()
    gg.setRanges(gg.REGION_CODE_APP)
    gg.searchNumber('-2' , gg . TYPE_FLOAT , gg . SIGN_EQUAL ,  0, -1 )
    gg.getResults(10)
    gg.editAll('750', gg.TYPE_FLOAT , gg.SIGN_EQUAL , 0 , -1)
    gg.clearResults()
    gg.toast('? blah blah blah ?')
  end

function h2()
    gg.setRanges(gg.REGION_CODE_APP)
    gg.searchNumber('-4' , gg . TYPE_FLOAT , gg . SIGN_EQUAL ,  0, -1 )
    gg.getResults(10)
    gg.editAll('2000', gg.TYPE_FLOAT , gg.SIGN_EQUAL , 0 , -1)
    gg.clearResults()
    gg.toast('? blah blah blah ?')
  end

[...]
 

 

use only as base as it may contain errors and is not your xD script Sorry for bad English.

Link to comment
Share on other sites

On 26/07/2018 at 17:02, Lenn1 said:

 

 

use o menu para chamar uma função. Você pode usar gg .choice ou gg .multchoice. mas não use "goto" para chamar a função. o botão na minha ira contém a função de saída para desativar o script, e o nulo será a minimização, juntamente com as outras funções. exemplo para minimizar o que eu uso:

[...]

function open ()
menu = gg .choice ({ 'Salto de tempo  ✅' , 'hack 1 ✅' , 'hack 2 ✅' , '[EXIT]' }, nada , 'trapaceiro = BAN.' )
    se menu == nulo , saia ( )
    end
    if menu == 1 then  TJ ()
    end
    se menu == 2 then  h1 ()
    end
    if menu == 3 then  h2 ()
    end
    se menu == 4 then  exit2 ()
    end
    menuk = -1
 
  função final  TJ ()
  gg .timeJump ( '42345678' )
  gg .toast ( 'time jump!' )
  end

 

função exit ()
  gg .toast ( 'Script Minimized' )
  end

 

 

função exit2 ()
  gg .toast ( 'Script Shutdown' )

  os.exit ()
  end

function  h1 ()
    gg .setRanges ( gg .REGION_CODE_APP)
    gg .searchNumber ( '-2' , gg . TYPE_FLOAT, gg . SIGN_EQUAL, 0, -1)
    gg .getResults (10)
    gg .editAll ( '750' , gg . TYPE_FLOAT, gg .SIGN_EQUAL, 0, -1)
    gg .clearResults ()
    gg .toast ( ' ?blá blá blá  ?' )
  fim

function  h2 ()
    gg .setRanges ( gg .REGION_CODE_APP)
    gg .searchNumber ( '-4' , gg . TYPE_FLOAT, gg . SIGN_EQUAL, 0, -1)
    gg .getResults (10)
    gg .editAll ( '2000' , gg . TYPE_FLOAT, gg .SIGN_EQUAL, 0, -1)
    gg .clearResults ()
    gg .toast ( ' ?blá blá blá  ?' )
  fim

[...]
 

 

usar apenas como base, pois pode conter erros e não é o seu script xD Desculpe por mau Inglês.

Lenn1 your brazilian? 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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