The Lab
CAMERA native

ATTACH_CAM_TO_PED_BONE

returns void7 paramsbuild 1207

Attaches cam to the bone boneIndex of ped at the given offset.

Signature

C
void ATTACH_CAM_TO_PED_BONE(Cam cam, Ped ped, int boneIndex, float x, float y, float z, BOOL heading); // 0xDFC1E4A44C0324CA b1207

Parameters

#NameType
1camCam
2pedPed
3boneIndexint
4xfloat
5yfloat
6zfloat
7headingBOOL

Facts

Facts about ATTACH_CAM_TO_PED_BONE
Name
ATTACH_CAM_TO_PED_BONE
Hash
0xDFC1E4A44C0324CA
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(0xDFC1E4A44C0324CA, -- ATTACH_CAM_TO_PED_BONE
  0, -- Cam cam
  PlayerPedId(), -- Ped ped
  0, -- int boneIndex
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false -- BOOL heading
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xDFC1E4A44C0324CA", // ATTACH_CAM_TO_PED_BONE
  0, // Cam cam
  PlayerPedId(), // Ped ped
  0, // int boneIndex
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false // BOOL heading
);
C#
Function.Call((Hash)0xDFC1E4A44C0324CA, // ATTACH_CAM_TO_PED_BONE
  0, // Cam cam
  API.PlayerPedId(), // Ped ped
  0, // int boneIndex
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false // BOOL heading
);
All CAMERA natives

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