Can I change the FPS (frames per second) during runtime in GDevelop?

Hi,
I’m trying to change the maximum FPS (frames per second) while the game is running in GDevelop.
I tried using this JavaScript code inside an event:

runtimeScene.getGame().setMaximumFPS(30);

But it doesn’t work.

Is there any correct way to change the FPS during runtime?