Currently when you don't move yourself or your camera for 30 seconds the game enables its "idle camera", which kind of zooms onto close vehicles or players. It can get rather annoying and distracting especially when you're typing or you're just standing at a meeting and the camera turns itself on.
There's a simple way to disable this in RAGE MP. Calling these native functions reset the internal timer, so if they're called at least once in 30 seconds the idle camera gets never enabled:
https://alloc8or.re/gta5/nativedb/?n=0xF4F2C0D4EE209E20 (CAM::INVALIDATE_IDLE_CAM)
https://alloc8or.re/gta5/nativedb/?n=0x9E4CFFF989258472 (CAM::_INVALIDATE_VEHICLE_IDLE_CAM)
This small snippet of code does essentially what I described:
setInterval(() => {
mp.game.invoke('0xF4F2C0D4EE209E20'); // Disable idle camera
mp.game.invoke('0x9E4CFFF989258472'); // Disable vehicle idle camera
}, 28000);