ATTACH_CAM_TO_PED_BONE
Hash
0xDFC1E4A44C0324CARuntime name
AttachCamToPedBoneNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x61A3DBA14AB7F411Signature
void ATTACH_CAM_TO_PED_BONE(Cam cam, Ped ped, int boneIndex, float x, float y, float z, BOOL heading);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
ped | Ped | — |
boneIndex | int | — |
x | float | — |
y | float | — |
z | float | — |
heading | BOOL | — |
Returns void
Description
boneIndex: https://github.com/femga/rdr3_discoveries/tree/master/boneNames
Usage
AttachCamToPedBone(cam, ped, boneIndex, x, y, z, heading)
-- always works, by hash
Citizen.InvokeNative(0xDFC1E4A44C0324CA, cam, ped, boneIndex, x, y, z, heading)JavaScript and C#
AttachCamToPedBone(cam, ped, boneIndex, x, y, z, heading);
// by hash
Citizen.invokeNative('0xDFC1E4A44C0324CA', cam, ped, boneIndex, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading);Function.Call((Hash)0xDFC1E4A44C0324CA, cam, ped, boneIndex, x, y, z, heading);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eAnimBoneTag 911 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.