CameraClient

setThirdPersonCamRelativeHeadingLimitsThisUpdate

SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE0x8F993D26E0CA5E8E

The GTA V native SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE of the CAM namespace, as LS:MP client scripts call it: the global function setThirdPersonCamRelativeHeadingLimitsThisUpdate, in JavaScript and in Lua.

SignatureJavaScript
setThirdPersonCamRelativeHeadingLimitsThisUpdate(
  minimum: number,
  maximum: number
): void
SignatureLua
setThirdPersonCamRelativeHeadingLimitsThisUpdate(
  minimum: number,
  maximum: number
)

Usage

JavaScript
setThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum);
Lua
setThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum)

Parameters

ParameterTypeJavaScriptLuaDescription
minimumfloatnumbernumberDegrees between -180f and 180f.
maximumfloatnumbernumberDegrees between -180f and 180f.

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 yaw.

Eg. setThirdPersonCamRelativeHeadingLimitsThisUpdate(0.0f, 0.0f) will set the horizontal angle directly behind the player.

Reference

Namespace
Camera CAM
In the game
void SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE(float minimum, float maximum)
Hash
0x8F993D26E0CA5E8E
Formerly
_CLAMP_GAMEPLAY_CAM_YAW

Open in the interactive natives reference