The Lab
CAMERA native

GET_GAMEPLAY_CAM_RELATIVE_HEADING

returns float0 paramsbuild 1207

Returns the heading of the gameplay camera relative to the player ped's heading.

Signature

C
float GET_GAMEPLAY_CAM_RELATIVE_HEADING(); // 0xC4ABF536048998AA b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_GAMEPLAY_CAM_RELATIVE_HEADING
Name
GET_GAMEPLAY_CAM_RELATIVE_HEADING
Hash
0xC4ABF536048998AA
Namespace
Returns
float
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xC4ABF536048998AA, -- GET_GAMEPLAY_CAM_RELATIVE_HEADING
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xC4ABF536048998AA", // GET_GAMEPLAY_CAM_RELATIVE_HEADING
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xC4ABF536048998AA); // GET_GAMEPLAY_CAM_RELATIVE_HEADING
All CAMERA natives

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