GET_PED_BONE_COORDS
Returns the world coordinates of the bone boneId on ped, plus the given offset.
Signature
Vector3 GET_PED_BONE_COORDS(Ped ped, int boneId, float offsetX, float offsetY, float offsetZ); // 0x17C07FC640E86B4E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | boneId | int |
| 3 | offsetX | float |
| 4 | offsetY | float |
| 5 | offsetZ | float |
Facts
| Name | GET_PED_BONE_COORDS |
|---|---|
| Hash | 0x17C07FC640E86B4E |
| Namespace | |
| Returns | Vector3 |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local coords = Citizen.InvokeNative(0x17C07FC640E86B4E, -- GET_PED_BONE_COORDS
PlayerPedId(), -- Ped ped
0, -- int boneId
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const coords = Citizen.invokeNative("0x17C07FC640E86B4E", // GET_PED_BONE_COORDS
PlayerPedId(), // Ped ped
0, // int boneId
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0x17C07FC640E86B4E, // GET_PED_BONE_COORDS
API.PlayerPedId(), // Ped ped
0, // int boneId
0.0f, // float offsetX
0.0f, // float offsetY
0.0f // float offsetZ
);Related PED natives
- GET_PED_BONE_INDEX
- GET_PED_LAST_DAMAGE_BONE
- GET_DEAD_PED_PICKUP_COORDS
- GET_PED_BLACKBOARD_SCRIPT_BOOL
- GET_PED_BLACKBOARD_SCRIPT_FLOAT
- GET_PED_BLACKBOARD_SCRIPT_INT
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_RAGDOLL_BONE_INDEX
- _GET_PED_WHO_HOGITIED_THIS_PED
- GET_PED_ACCURACY
- GET_PED_AS_GROUP_LEADER
- GET_PED_AS_GROUP_MEMBER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.