Trying to pause the rendering to freeze the game camera

I’m trying to freeze the game camera using the native TogglePausedRenderphases(false) (Also previously named _ENABLE_GAMEPLAY_CAM / _SET_FROZEN_RENDERING_DISABLED). The problem is that when I exit the game with alt + tab and return to it, the game rendering is no longer paused and the camera is no longer frozen. This only happens when the game is in full screen.

I would be very grateful for any help or advice!

I tested the same on the base game and there is the exact same issue. The problem therefore comes from GTA and not from FiveM.