[Help] Forcer first person on vehicles

I thought using something like this code found in rottenV

local forceFirstPerson = true

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

	while true do
		Wait(1)

		if forceFirstPerson then
			SetFollowPedCamViewMode(4)
		      	end
	end
end)

Can anyone help me with that ?

https://runtime.fivem.net/doc/reference.html#_0x5A4F9EDF1673F704
So yes you can use that to force First Person view

https://runtime.fivem.net/doc/reference.html#_0x997ABD671D25CA0B
Use this to know if the player is in a vehicle