Jump to content
  • 0

multiChoice remember checkbox after execute


1x1

Question

Posted

Hello, so i wanted to make a save multiChoice checkbox after executing.

So i have the code for gg.choice:

function START()

local Menu = gg.choice({"Button 1", "Button 2", "Exit"}, abc, 'Hello button")

if Menu == 1 then

abc = 1

end

if Menu == 2 then

abc = 2

end

if Menu == 3 then

os.exit(print("Bye"))

end

abc = 0

while(true) do

if gg.isVisible(true) then

gg.setVisible(false)

Start()

end

end

 

But the problem is, i don't know how to do the same thing like Choice but in multiChoice.

 

Please help

4 answers to this question

Recommended Posts

Posted
local selection = {false, false}

function start()
    local multiMenu = gg.multiChoice({'hack health', 'hack mana', 'Exit'}, selection)
    if not multiMenu then return end
    if multiMenu[3] then print('Exited') os.exit() end
    selection = multiMenu
end

while true do
    if gg.isVisible(true) then gg.setVisible(false) start() end
end

 

Posted
1 hour ago, Lover1500 said:
local selection = {false, false}

function start()
    local multiMenu = gg.multiChoice({'hack health', 'hack mana', 'Exit'}, selection)
    if not multiMenu then return end
    if multiMenu[3] then print('Exited') os.exit() end
    selection = multiMenu
end

while true do
    if gg.isVisible(true) then gg.setVisible(false) start() end
end

 

Thank you very much Lover1500

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.