Jump to content
  • 0

script


blocx
 Share

Question

hi is there a way for autoclose script when i launch i make a script but when i use and when i reopen floating icon im still in menu of my script i need to use exit for no reopen thanks

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

no one help when i use my script and when i re open float icon the menu.is slill open and if i no click exit fonction menu still here how to menu auto exit when i run my script ? thanks

Link to comment
Share on other sites

  • 0

ty bro where i need to put these code ( after fonctions  ?) in this case exemple

Screenshot_20210702-105910_QuickEdit.jpg

[added 1 minute later]

and with this i can delete exit functions?

Link to comment
Share on other sites

  • 0

here try this..me modified it from @CmP script (credits to him).

local function h1()
  --your hack here--
  gg.alert("Hack 1 Done")
end

local function h2()
  --your hack here--
  gg.alert("Hack 2 Done")
end

local function h3()
  --your hack here--
  gg.alert("Hack 3 Done")
end

local hacks = {
  {name = ">> Hack 1", func = h1},
  {name = ">> Hack 2", func = h2},
  {name = ">> Hack 3", func = h3},
}

local hackNames = {}
local hackFunctions = {}
for i, v in pairs(hacks) do
  table.insert(hackNames, v.name)
  table.insert(hackFunctions, v.func)
end

gg.setVisible(false)
local choice = gg.choice(hackNames,nil,"Main Menu")
if choice ~= nil then
  hackFunctions[choice]()
end

 

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
 Share

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