AttachCamToVehicleBone — FiveM Natives
0x8DB3F12A02CAEF72 · CAM · all
This native works with vehicles only. Bone indexes are usually given by this native GET_ENTITY_BONE_INDEX_BY_NAME.
Parameters
| Name | Type | Description |
|---|---|---|
| cam | Cam | The camera handle. |
| vehicle | Vehicle | The vehicle handle. |
| boneIndex | int | |
| relativeRotation | BOOL | Whether or not the camera rotation will relative the vehicle rotation. |
| rotX | float | The X rotation. |
| rotY | float | The Y rotation. |
| rotZ | float | The Z rotation. |
| offX | float | The X offset direction. |
| offY | float | The Y offset direction. |
| offZ | float | The Z offset direction. |
| fixedDirection | BOOL | Whether or not the camera direction will relative to the vehicle direction. |
Returns
void