How to remember something for a gui menu that is unloaded? (SOLVED)

Oh hmm ok so in the menuproxy it’s unloaded when I go into a submenu, and reloaded when I leave that submenu. Where can I keep a variable to remember the position of something in the menu, won’t it be ‘forgotten’ when that is unloaded ? (if I keep it say self.whatever in the menucontroller.script ?)

You can store variables in a Lua module so you don’t lose them whenever a proxy is unloaded.

1 Like

I will have to check that out - thank you !