GET_ENTITY_BONE_INDEX_BY_NAME
Returns the index of the bone named boneName on the entity, or -1 if not found.
Signature
int GET_ENTITY_BONE_INDEX_BY_NAME(Entity entity, const char* boneName); // 0xBACA8FE9C76C124E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | boneName | const char* |
Facts
| Name | GET_ENTITY_BONE_INDEX_BY_NAME |
|---|---|
| Hash | 0xBACA8FE9C76C124E |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xBACA8FE9C76C124E, -- GET_ENTITY_BONE_INDEX_BY_NAME
PlayerPedId(), -- Entity entity
"text", -- const char* boneName
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xBACA8FE9C76C124E", // GET_ENTITY_BONE_INDEX_BY_NAME
PlayerPedId(), // Entity entity
"text", // const char* boneName
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xBACA8FE9C76C124E, // GET_ENTITY_BONE_INDEX_BY_NAME
API.PlayerPedId(), // Entity entity
"text" // const char* boneName
);Related ENTITY natives
- GET_OBJECT_INDEX_FROM_ENTITY_INDEX
- GET_PED_INDEX_FROM_ENTITY_INDEX
- GET_VEHICLE_INDEX_FROM_ENTITY_INDEX
- GET_WORLD_POSITION_OF_ENTITY_BONE
- GET_ENTITY_ALPHA
- GET_ENTITY_ATTACHED_TO
- GET_ENTITY_COLLISION_DISABLED
- GET_ENTITY_COORDS
- GET_ENTITY_FORWARD_VECTOR
- GET_ENTITY_FORWARD_X
- GET_ENTITY_FORWARD_Y
- GET_ENTITY_HEADING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.