setThirdPersonCamRelativePitchLimitsThisUpdate
SET_THIRD_PERSON_CAM_RELATIVE_PITCH_LIMITS_THIS_UPDATE0xA516C198B7DCA1E1The GTA V native SET_THIRD_PERSON_CAM_RELATIVE_PITCH_LIMITS_THIS_UPDATE of the CAM namespace, as LS:MP client scripts call it: the global function setThirdPersonCamRelativePitchLimitsThisUpdate, in JavaScript and in Lua.
setThirdPersonCamRelativePitchLimitsThisUpdate(
minimum: number,
maximum: number
): voidsetThirdPersonCamRelativePitchLimitsThisUpdate(
minimum: number,
maximum: number
)Usage
JavaScript
setThirdPersonCamRelativePitchLimitsThisUpdate(minimum, maximum);Lua
setThirdPersonCamRelativePitchLimitsThisUpdate(minimum, maximum)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
minimum | float | number | number | Degrees between -90f and 90f. |
maximum | float | number | number | Degrees between -90f and 90f. |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Clamps the gameplay camera's current pitch.
Eg. setThirdPersonCamRelativePitchLimitsThisUpdate(0.0f, 0.0f) will set the vertical angle directly behind the player.
Reference
- Namespace
- Camera CAM
- In the game
void SET_THIRD_PERSON_CAM_RELATIVE_PITCH_LIMITS_THIS_UPDATE(float minimum, float maximum)- Hash
0xA516C198B7DCA1E1- Formerly
_CLAMP_GAMEPLAY_CAM_PITCH