Jump to content

Question

Posted

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

15 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted
local autoEx
while true do
	local a = os.time()
	if a - autoEx > 60 then 
		break
	end
	if gg.isVisible() then 
		local a = gg.choice({"Exit"}, 1, "Sel hack.")
		if a then 
			if a < 2 then 
				break
			end
		end
		gg.setVisible(false)
		autoEx = os.time()
	end
end

 

  • 0
Posted

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?

  • 0
Posted

i dont understant pe script if i click cancel i relaunch floting icon then menu still in script

  • 0
Posted

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

 

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.