Jump to content
RAGE Multiplayer Community

Usefull Snipped - Reset Idle Timer - Cinematic Cam


Recommended Posts

The idle or cinematic cam that becomes active after a certain time and constantly points to other things.
can be easily deactivated. I'm going to post a snippet of code here to help you disable the IDLE camera (reset the idle timer).

RAGE:MP Clientside Snipped:

let IdleDate = new Date();
mp.events.add('render', () => {
    const dif = new Date().getTime() - IdleDate.getTime();
    const seconds = dif / 1000;

    if (Math.abs(seconds) > 29.5) {
        mp.game.invoke(`0xF4F2C0D4EE209E20`); //Clear Idle Timer
        IdleDate = new Date();
    }
});

Have Fun

Edited by BitDEVil2K16
Add Tags
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...