How do I set up a invert camera checkbox inside a game menu?

No, unfortunately. It’s not one of the default config variables, so doesn’t get saved to the config file. You have to save it yourself and re-load.

How are you stuck?