GET_PED_BONE_COORDS
Gets the position of the specified bone of the specified ped.
Hash
0x17C07FC640E86B4ERuntime name
GetPedBoneCoordsNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x17C07FC640E86B4ESignature
Vector3 GET_PED_BONE_COORDS(Ped ped, int boneId, float offsetX, float offsetY, float offsetZ);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
boneId | int | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
Returns Vector3
Description
Gets the position of the specified bone of the specified ped.
ped: The ped to get the position of a bone from.
boneId: The ID of the bone to get the position from. This is NOT the index.
offsetX: The X-component of the offset to add to the position relative to the bone's rotation.
offsetY: The Y-component of the offset to add to the position relative to the bone's rotation.
offsetZ: The Z-component of the offset to add to the position relative to the bone's rotation.
Usage
local retval = GetPedBoneCoords(ped, boneId, offsetX, offsetY, offsetZ)
-- always works, by hash
local retval = Citizen.InvokeNative(0x17C07FC640E86B4E, ped, boneId, offsetX, offsetY, offsetZ, Citizen.ResultAsVector())JavaScript and C#
const retval = GetPedBoneCoords(ped, boneId, offsetX, offsetY, offsetZ);
// by hash
const retval = Citizen.invokeNative('0x17C07FC640E86B4E', ped, boneId, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x17C07FC640E86B4E, ped, boneId, offsetX, offsetY, offsetZ);- 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.