Changing project frame rate with code

does anyone know how to change the projects frame rate with code.

Simple terms, you can’t.

You can’t change the frame rate with code, but if you want some parts of the project to move slower or faster than other parts, that is possible depending on how your project is built.