[Request] Disable Cinematic camera when "afk"

Pretty simple request…
I’m trying to disable the cinematic camera when the player goes “afk” for a couple of seconds. This is mostly because of NUI stealing focus for long enough to send the camera into cinematic mode. It’s very irritating when the current menu is part of an in-world editor where you need to see everything…

Anybody have any ideas?

SetCinematicModeActive doesn’t seem to work

3 Likes

It’s not that simple though…
Probably check if the gameplay camera is rendering (which returns false if cinematic is active) then disable all cameras

1 Like

Sorry for digging this topic, but it’s the only one related to this I found. I’d really appreciate some more detailed answer about how to disable such cinematic afk camera or simply force some camera position for a specific time.

1 Like

For future reference, the native to reset the afk timer is N_0xf4f2c0d4ee209e20. The camera only activates after being afk for 30 seconds so it’s enough to call this native once every few seconds. E.g.

Citizen.CreateThread(function() 
  while true do
    N_0xf4f2c0d4ee209e20() 
    Wait(1000)
  end 
end)
6 Likes

Can I put this in any active script and it will work fine?

1 Like

Yep It is client side.

My hero, Been looking everywhere to change this timer. Thanks for the help!