Jump to content
  • 0

How to apply an idea on and off script in gg.multiChoice


g1doz

Question

How to apply an idea on and off script in gg.multiChoice ?

for example when user activation hack menu [1] = true  and when user deactivation hack menu [1] = false

Is this possible?

function fly_hack()
menu = gg.multiChoice({"Fly 1","Fly  2","Back"},nil, "fly hack")
if menu == nil then home() else
if menu [1] == true then fly1() end
if menu [2] == true then fly2() end
if menu [3] == true then home() end

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

z=-1
a=0;b=0
f1='fly off'
f2='fly2 off'
function fly_hack()
if a==0 then f1='Fly off' else f1='Fly on'end
if b==0 then f2='Fly2 off' else f2='Fly2 on'end
menu=gg.multiChoice({f1,f2,"Back"},nil,"fly hack")
if menu == nil then fly_hack() elseif menu [1] == true then fly1() end
if menu[2]==true then fly2()
end
if menu[3]==true then fly_hack()
end z=0 end
function fly1()
if a==0 then a=1 else a=0 end end
function fly2()
if b==0 then b=1 else b=0 end end
while (true) do if gg.isVisible(true)then z=1;gg.setVisible(false)elseif z==1 then fly_hack()end end

 

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.