Jump to content
  • 0

Menu shwoing again


Going_dark

Question

Posted

Recently i faced an issue while creating a script.Everything was working fine values were working but one thing that was annoying me was that the menu was showing again even when not choosing an option,pressing cancel or ok and even back button here

Here is the code 

gg.toast("❤️🔥SCRIPT BY TEAM 2SH❤️🔥")

gg.setVisible(true)

2SH = 1

function START()

MENU = gg.multiChoice({

    " 💰 UNLIMITED COINS + GEMS 💎",

    " 🆓 ALL CHEST 0 DIAMOND 🆓",

    " ✌️ AUTO WIN ✌️ ",

    " 🕊️ FLY EVERY VEHICLE🕊️",

    " 🛣️ FLAT ROAD (CITY)🛣️",

    "👽FUEL HACK👽",

    "🌕FREE VIP🌕",

    "🔥 HOTROD HACK🔥",

    "🚗 SPEED HACK🚗",

    "🚫FAKE RANK 1.0🚫",

    "⭕FAKE RANK 2.0⭕",

    " 👇 LOW DOWNFORCE 👇",

    " 👇HIGH DOWNFORCE👇",

    "💨AIR DRAG💨",

    "🥉 ALL CARS IN BRONZE🥉",

    "🚗 DISTANCE HACK 🚗",

    " 📚 INFORMATION 📚",

    "❌ EXIT ❌"

}, nil, os.date("DATE : %d:%m:%y \n TIME : %H:%M:%S \n\n TELEGRAM : NIGHTMARE \n\n YOUTUBE : GCRIMINAL"))

   if MENU == nil then

   else

   if MENU[1] == true then

      MENU1()

     end

   if MENU[2] == true then 

      MENU2()

     end

   if MENU[3] == true then 

      MENU3()

     end

   if MENU[4] == true then 

      MENU4()

     end

     if MENU[5] == true then 

      MENU5()

     end

     if MENU[6] == true then 

      MENU6()

     end

     if MENU[7] == true then 

      MENU7()

     end

if MENU[8] == true then 

      MENU8()

     end

if MENU[9] == true then 

      MENU9()

     end

if MENU[10] == true then 

      MENU10()

     end

if MENU[11] == true then 

      MENU11()

     end

if MENU[12] == true then 

      MENU12()

     end

if MENU[13] == true then 

      MENU13()

     end

if MENU[14] == true then 

      MENU14()

     end

if MENU[15] == true then 

      MENU15()

     end

     if MENU[16] == true then 

      MENU16()

     end

     if MENU[17] == true then 

      MENU17()

     end

    if MENU[18] == true then --EndScript

      LOBBY()

     end

   end

  2SH = -1

end

end

4 answers to this question

Recommended Posts

Posted
On 4/29/2023 at 12:22 PM, Going_dark said:

Recently i faced an issue while creating a script.Everything was working fine values were working but one thing that was annoying me was that the menu was showing again even when not choosing an option,pressing cancel or ok and even back button here

Here is the code 

gg.toast("❤️🔥SCRIPT BY TEAM 2SH❤️🔥")

gg.setVisible(true)

2SH = 1

function START()

MENU = gg.multiChoice({

    " 💰 UNLIMITED COINS + GEMS 💎",

    " 🆓 ALL CHEST 0 DIAMOND 🆓",

    " ✌️ AUTO WIN ✌️ ",

    " 🕊️ FLY EVERY VEHICLE🕊️",

    " 🛣️ FLAT ROAD (CITY)🛣️",

    "👽FUEL HACK👽",

    "🌕FREE VIP🌕",

    "🔥 HOTROD HACK🔥",

    "🚗 SPEED HACK🚗",

    "🚫FAKE RANK 1.0🚫",

    "⭕FAKE RANK 2.0⭕",

    " 👇 LOW DOWNFORCE 👇",

    " 👇HIGH DOWNFORCE👇",

    "💨AIR DRAG💨",

    "🥉 ALL CARS IN BRONZE🥉",

    "🚗 DISTANCE HACK 🚗",

    " 📚 INFORMATION 📚",

    "❌ EXIT ❌"

}, nil, os.date("DATE : %d:%m:%y \n TIME : %H:%M:%S \n\n TELEGRAM : NIGHTMARE \n\n YOUTUBE : GCRIMINAL"))

   if MENU == nil then

   else

   if MENU[1] == true then

      MENU1()

     end

   if MENU[2] == true then 

      MENU2()

     end

   if MENU[3] == true then 

      MENU3()

     end

   if MENU[4] == true then 

      MENU4()

     end

     if MENU[5] == true then 

      MENU5()

     end

     if MENU[6] == true then 

      MENU6()

     end

     if MENU[7] == true then 

      MENU7()

     end

if MENU[8] == true then 

      MENU8()

     end

if MENU[9] == true then 

      MENU9()

     end

if MENU[10] == true then 

      MENU10()

     end

if MENU[11] == true then 

      MENU11()

     end

if MENU[12] == true then 

      MENU12()

     end

if MENU[13] == true then 

      MENU13()

     end

if MENU[14] == true then 

      MENU14()

     end

if MENU[15] == true then 

      MENU15()

     end

     if MENU[16] == true then 

      MENU16()

     end

     if MENU[17] == true then 

      MENU17()

     end

    if MENU[18] == true then --EndScript

      LOBBY()

     end

   end

  2SH = -1

end

end

I have fix your problem in this function but @MonkeySAN is right if it didn't work SPOILER__.lua

 

Posted
12 minutes ago, Going_dark said:

Just part of it

fixing just a part of a script does not mean the entire script will be fixed as the fix is only for that specific part of the script not the entire script.

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.