RedM Natives

SET_GAMEPLAY_CAM_RELATIVE_PITCH

Sets the camera pitch.

Hash0xFB760AF4F537B8BF
Runtime nameSetGameplayCamRelativePitch
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6D0858B8EDFD2B7D

Signature

void SET_GAMEPLAY_CAM_RELATIVE_PITCH(float x, float Value2);

Parameters

NameTypeDescription
xfloat—
Value2float—

Returns void

Description

Sets the camera pitch.

Parameters:
x = pitches the camera on the x axis.
Value2 = always seems to be hex 0x3F800000 (1.000000 float).

Usage

Lua
SetGameplayCamRelativePitch(x, Value2)

-- always works, by hash
Citizen.InvokeNative(0xFB760AF4F537B8BF, x, Value2)
JavaScript and C#
JavaScript
SetGameplayCamRelativePitch(x, Value2);

// by hash
Citizen.invokeNative('0xFB760AF4F537B8BF', x + 0.0000001, Value2 + 0.0000001);
C#
Function.Call((Hash)0xFB760AF4F537B8BF, x, Value2);
  • 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.

See also

Sources

alloc8or RDR3 NativeDB

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