SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE
Clamps the gameplay camera's current yaw.
Hash
0x14F3947318CA8AD2Runtime name
SetThirdPersonCamRelativeHeadingLimitsThisUpdateNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8F993D26E0CA5E8ESignature
void SET_THIRD_PERSON_CAM_RELATIVE_HEADING_LIMITS_THIS_UPDATE(float minimum, float maximum);Parameters
| Name | Type | Description |
|---|---|---|
minimum | float | — |
maximum | float | — |
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
SetThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum)
-- always works, by hash
Citizen.InvokeNative(0x14F3947318CA8AD2, minimum, maximum)JavaScript and C#
SetThirdPersonCamRelativeHeadingLimitsThisUpdate(minimum, maximum);
// by hash
Citizen.invokeNative('0x14F3947318CA8AD2', minimum + 0.0000001, maximum + 0.0000001);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. 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.