# PED::GET_PED_BONE_INDEX

- **Hash:** `0x3F428D08BE5AAE31`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetPedBoneIndex`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/GET_PED_BONE_INDEX

## Signature

```c
int GET_PED_BONE_INDEX(Ped ped, int boneId);
```

## Parameters

- `ped` (`Ped`)
- `boneId` (`int`)

## Returns

`int`

## Description

no bone = -1

## Usage

### Lua

```lua
local retval = GetPedBoneIndex(ped, boneId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x3F428D08BE5AAE31, ped, boneId, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetPedBoneIndex(ped, boneId);

// by hash
const retval = Citizen.invokeNative('0x3F428D08BE5AAE31', ped, boneId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x3F428D08BE5AAE31, ped, boneId);
```

## Related enums

- [eAnimBoneTag](https://natives.borderlinerp.com/enums/eAnimBoneTag.md) — 911 values

*Sources: alloc8or RDR3 NativeDB.*
