SET_THIRD_PERSON_CAM_RELATIVE_PITCH_LIMITS_THIS_UPDATE
Clamps the gameplay camera's current pitch.
Hash
0x326C7AA308F3DF6ARuntime name
SetThirdPersonCamRelativePitchLimitsThisUpdateNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA516C198B7DCA1E1Signature
void SET_THIRD_PERSON_CAM_RELATIVE_PITCH_LIMITS_THIS_UPDATE(float minimum, float maximum);Parameters
| Name | Type | Description |
|---|---|---|
minimum | float | — |
maximum | float | — |
Returns void
Description
minimum: Degrees between -90f and 90f.
maximum: Degrees between -90f and 90f.
Clamps the gameplay camera's current pitch.
Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player.
Old name: _CLAMP_GAMEPLAY_CAM_PITCH
Usage
SetThirdPersonCamRelativePitchLimitsThisUpdate(minimum, maximum)
-- always works, by hash
Citizen.InvokeNative(0x326C7AA308F3DF6A, minimum, maximum)JavaScript and C#
SetThirdPersonCamRelativePitchLimitsThisUpdate(minimum, maximum);
// by hash
Citizen.invokeNative('0x326C7AA308F3DF6A', minimum + 0.0000001, maximum + 0.0000001);Function.Call((Hash)0x326C7AA308F3DF6A, minimum, maximum);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.