AttachCamToPedBone — FiveM Natives
0x61A3DBA14AB7F411 · CAM · all
This native works with peds only.
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. |
| xOffset | float | X-axis offset |
| yOffset | float | Y-axis offset |
| zOffset | float | Z-axis offset |
| isRelative | BOOL | Whether or not the camera will be relative to the bone |
Returns
void