The Lab
CAMERA native

GET_CAM_ROT

returns Vector32 paramsbuild 1207

Returns the rotation of cam in degrees, using rotationOrder (2 is the common default).

Signature

C
Vector3 GET_CAM_ROT(Cam cam, int rotationOrder); // 0x9BF96B57254E7889 b1207

Parameters

#NameType
1camCam
2rotationOrderint

Facts

Facts about GET_CAM_ROT
Name
GET_CAM_ROT
Hash
0x9BF96B57254E7889
Namespace
Returns
Vector3
Game build
1207

Examples

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

Lua
local coords = Citizen.InvokeNative(0x9BF96B57254E7889, -- GET_CAM_ROT
  0, -- Cam cam
  0, -- int rotationOrder
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x9BF96B57254E7889", // GET_CAM_ROT
  0, // Cam cam
  0, // int rotationOrder
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x9BF96B57254E7889, // GET_CAM_ROT
  0, // Cam cam
  0 // int rotationOrder
);
All CAMERA natives

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