Add this right after SetCamActive(cam, true);

RenderScriptCams(true, false, 1, true, true)

So it should be;

cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", pos.x, pos.y + 0.5, pos.z + 0.5, 0.0 ,0.0, heading, 60.00, false, 0)
SetCamActive(cam, true)
RenderScriptCams(true, false, 1, true, true)

When switching back to the player, when you call SetCamActive(cam, false), call that function after again, but with the first parameter as false;

SetCamActive(cam, false)
RenderScriptCams(false, false, 1, true, true)

Try that and if it works, mark this as the solution to help others that search for this sort of thing! :slightly_smiling_face: