[Need help] script for change FOV

@Syntasu I’ve tried this, using First Person Only as a base.

I have

local forceFirstPerson = true
local camera = GetRenderingCam()
local fov = 120.0

-- CODE --
Citizen.CreateThread(function()

	while true do
		Wait(1)

		if forceFirstPerson then
			SetFollowPedCamViewMode(4)
			SetCamFov(camera, fov)
		      	end
	end
end)

The camera stays as first person, however the FOV doesn’t change from the default.
Any ideas?

Edit
I am able to create a new camera and change the FOV of it however altering the FOV of cam when

local cam = GetRenderingCam()

Doesn’t do anything, does GetRenderingCam work in this way or not?