Jump to content
  • 0

Help me to advance my script menu please


KarimIdris999997

Question

Posted
function HOME()
H = gg.multiChoice({
"BOD1", 
"EXIT SCRIPT",},nil,"") 
if H == nil then else
if H[1] == true then bod1() end
if H[2] == true then os.exit() end
end
XGCK = -1
end

function bod1()
L = gg.multiChoice({
"xray", 
"BACK TO MAIN MENU",},nil,"") 
if L == nil then gg.setVisible(false) bod1() else
if L[1] == true then xray() end
if L[2] == true then HOME() end
end
XGCK = -1
end

1)I want to use bod1() menu ,and stay at bod1() menu after using cheat xray until i press back to main menu.

2)when i tap gg icon after using xray,i want bod1() menu not HOME() menu choices.

3)The problem is >After i use xray cheat..it automatically return to the menu bod1() ,and if i tap cancel at the bottom  bod1() menu it still popup menu bod1()

4)It should be>i tap cancel at the bottom bod1() menu,it will dissappear,when i tap gg icon again,menu bod1() popup back,and not HOME() menu.

--please help me,do i need to use gg.choice instead of gg.multiChoice?

1 answer to this question

Recommended Posts

Posted
1 hour ago, KarimIdris999997 said:

function HOME()
H = gg.multiChoice({
"BOD1", 
"EXIT SCRIPT",},nil,"") 
if H == nil then else
if H[1] == true then bod1() end
if H[2] == true then os.exit() end
end
XGCK = -1
end

function bod1()
L = gg.multiChoice({
"xray", 
"BACK TO MAIN MENU",},nil,"") 
if L == nil then gg.setVisible(false) bod1() else
if L[1] == true then xray() end
if L[2] == true then HOME() end
end
XGCK = -1
end

1)I want to use bod1() menu ,and stay at bod1() menu after using cheat xray until i press back to main menu.

2)when i tap gg icon after using xray,i want bod1() menu not HOME() menu choices.

3)The problem is >After i use xray cheat..it automatically return to the menu bod1() ,and if i tap cancel at the bottom  bod1() menu it still popup menu bod1()

4)It should be>i tap cancel at the bottom bod1() menu,it will dissappear,when i tap gg icon again,menu bod1() popup back,and not HOME() men

Oh i get..i just need to add this

function bod1()
L = gg.multiChoice({
"xray", 
"BACK TO MAIN MENU",},nil,"") 
if L == nil then else
if L[1] == true then xray() end
if L[2] == true then HOME() end
 end
 while true do
 if gg.isVisible() then
 gg.setVisible(false)
 bod1()
 else
 end
 end
 end

Sorry to bother u

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.