RedM Natives

SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE

Clamps the gameplay camera's current yaw.

Hash0x14F3947318CA8AD2
Runtime nameSetThirdPersonCamRelativeHeadingLimitsThisUpdate
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8F993D26E0CA5E8E

Signature

void SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE(float minimum, float maximum);

Parameters

NameTypeDescription
minimumfloat—
maximumfloat—

Returns void

Description

minimum: Degrees between -180f and 180f.
maximum: Degrees between -180f and 180f.

Clamps the gameplay camera's current yaw.

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

Old name: _CLAMP_GAMEPLAY_CAM_YAW

Usage

Lua
SetThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum)

-- always works, by hash
Citizen.InvokeNative(0x14F3947318CA8AD2, minimum, maximum)
JavaScript and C#
JavaScript
SetThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum);

// by hash
Citizen.invokeNative('0x14F3947318CA8AD2', minimum + 0.0000001, maximum + 0.0000001);
C#
Function.Call((Hash)0x14F3947318CA8AD2, minimum, maximum);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.