MZ Java Code for Main Menu

Hello,

I'm using Visustella's Main Menu Manager plugin and I need to be able to turn on and off things in the menu, mainly common event menu options. It seems like I'll need to use Java script code but I don't know how to do it or even where to look. I figure someone might know the required coding to pull this off, or if I missed some option in the program itself. It's odd there is the show and enable lines if it isn't easy to activate and deactivate them within the game itself. Thanks for any help!
After looking back at MV I noticed that it used to be based on a switch and I tried using the code in MZ but it doesn't work. Does anyone know how to change this code to work in MZ?

$gameSwitches.value(#)
Plugin link, for reference:
Looks like those parameters should be written as function code, try including a return statement like this:
JavaScript:
return $gameSwitches.value(5);
Also, note that Java and JavaScript are two different languages; RMMZ (like RMMV) uses JavaScript. 🙂
Thanks! I was messing around last night and found a site that listed the basic code commands for the buttons in rpg maker mz. I was able to cobble this together and it also seemed to work:

return $gameSwitches.value(432, true);

Not sure if the true even matters but it works lol.
Plugin link, for reference:
Looks like those parameters should be written as function code, try including a return statement like this:
JavaScript:
return $gameSwitches.value(5);
Also, note that Java and JavaScript are two different languages; RMMZ (like RMMV) uses JavaScript. 🙂

I wish I knew coding, I've picked up very small amounts over time in mv but it changed and I don't know enough to do what I want most of the time.

Original thread: https://forums.rpgmakerweb.com/threads/java-code-for-main-menu.129512/