The Lab
CAMERA native

SET_GAMEPLAY_CAM_RELATIVE_HEADING

returns void2 paramsbuild 1207

Rotates the gameplay camera to heading degrees relative to the player ped.

Signature

C
void SET_GAMEPLAY_CAM_RELATIVE_HEADING(float heading, float p1); // 0x5D1EB123EAC5D071 b1207

Parameters

#NameType
1headingfloat
2p1float

Facts

Facts about SET_GAMEPLAY_CAM_RELATIVE_HEADING
Name
SET_GAMEPLAY_CAM_RELATIVE_HEADING
Hash
0x5D1EB123EAC5D071
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x5D1EB123EAC5D071, -- SET_GAMEPLAY_CAM_RELATIVE_HEADING
  0.0, -- float heading
  0.0 -- float p1
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x5D1EB123EAC5D071", // SET_GAMEPLAY_CAM_RELATIVE_HEADING
  0.0, // float heading
  0.0 // float p1
);
C#
Function.Call((Hash)0x5D1EB123EAC5D071, // SET_GAMEPLAY_CAM_RELATIVE_HEADING
  0.0f, // float heading
  0.0f // float p1
);
All CAMERA natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.