HardAttachCamToPedBone — FiveM Natives
0x149916F50C34A40D · CAM · all
Attaches a camera to a specific bone of a Ped, including full matrix transformations for both rotation and position offsets. This native works with peds only. `` NativeDB Introduced: v1180 ``
Parameters
| Name | Type | Description |
|---|---|---|
| cam | Cam | The camera handle. |
| ped | Ped | The ped handle. |
| boneIndex | int | This is different to boneID, use [`GET_PED_BONE_INDEX`](#\_0x3F428D08BE5AAE31) to get the index from the ID. use the index for attaching to specific bones. `cam` will be attached to the center of `ped` if bone index given doesn't correspond to bone indexes for that entity type. |
| xRot | float | X-axis rotation. |
| yRot | float | Y-axis rotation. |
| zRot | float | Z-axis rotation. |
| xOffset | float | X-axis offset. |
| yOffset | float | Y-axis offset. |
| zOffset | float | Z-axis offset. |
| isRelative | BOOL | Whether or not the camera position will be relative to the bone rotation. |
Returns
void