Change game properties using events

How do I change the game’s properties using events? I am currently trying to change the Max FPS using buttons in-game.

I’m afraid you can’t.