Jump to content
  • 0

Menu shwoing again


Going_dark
 Share

Question

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
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.

Edited by MonkeySAN
im no expert so i could be wrong.
Link to comment
Share on other sites

  • 0
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

 

Link to comment
Share on other sites

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
 Share

×
×
  • 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.