# ENTITY::GET_ENTITY_BONE_INDEX_BY_NAME

- **Hash:** `0xBACA8FE9C76C124E`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `GetEntityBoneIndexByName`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/GET_ENTITY_BONE_INDEX_BY_NAME

## Signature

```c
int GET_ENTITY_BONE_INDEX_BY_NAME(Entity entity, const char* boneName);
```

## Parameters

- `entity` (`Entity`)
- `boneName` (`const char*`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetEntityBoneIndexByName(entity, boneName)

-- always available, by hash
local retval = Citizen.InvokeNative(0xBACA8FE9C76C124E, entity, boneName, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetEntityBoneIndexByName(entity, boneName);

// by hash
const retval = Citizen.invokeNative('0xBACA8FE9C76C124E', entity, boneName, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xBACA8FE9C76C124E, entity, boneName);
```

*Sources: alloc8or RDR3 NativeDB.*
