The best example is "hide menu buttons in combat" mod by zParticle
Then if you want the tabs to be kept hidden even after you exited the game...
What you'll need:
1. Savable STAT (Data Editors/Stats)
2. Logic Group (If there's an existing, no need to add new)
3. Stat Operator x2
4. Stat Evaluator x1
5. Timer x1 (Loops forever)
LOGIC in logic group:
- Insert your button and 2 stat operators
- Set your button to (Stat) operate for active value and inactive value (I use 0 for OFF and 1 for ON)
- Insert your Timer, Stat Evaluator, and the object you want hidden/shown
- Set a timer that (Stat) evaluates your custom stat's value for true or false
- If Stat Evaluator is true/false then hide/show the object.
Note: Make sure that no other LOGIC is trying to hide/show your object
Note2: If you intend to hide/show the whole menu with menu controller, be sure to mind other LOGIC also. Specially during combat and pause menu.