SetGameplayCamRelativePitch don't work in FP in vehicle
What happened?
The relative pitch of the camera does not change when you are in first person in a vehicle, whatever the values.
Expected result
Change the relative pitch of the camera, which is functional in other cases (3rd person, whether in a vehicle or not, first person without being in a vehicle).
Reproduction steps
Just try to set a value with SetGameplayCamRelativePitch in first person while in a vehicle and it won't work.
Importancy
Slight inconvenience
Area(s)
FiveM
Specific version(s)
GameBuild: 3258, Fx: b9572, Client: Beta
Additional information
No response
The intended native for changing the camera pitch in vehicle POVs is SetGameplayCamRelativeRotation
This will also work on the other camera modes, so you could technically ditch SetGameplayCamRelativePitch if you wanted to. You will however have to scale the values accordingly for the different camera modes.
local pitch = GetGameplayCamRelativePitch()
local heading = GetGameplayCamRelativeHeading()
SetGameplayCamRelativeRotation(heading, pitch + 2.0, 1.0)
--SetGameplayCamRelativePitch(pitch + 2.0, 1.0)