RedM Natives

GET_ENTITY_BONE_INDEX_BY_NAME

Hash0xBACA8FE9C76C124E
Runtime nameGetEntityBoneIndexByName
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFB71170B7E76ACBA

Signature

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

Parameters

NameTypeDescription
entityEntity—
boneNameconst char*—

Returns int

Usage

Lua
local retval = GetEntityBoneIndexByName(entity, boneName)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBACA8FE9C76C124E, entity, boneName, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityBoneIndexByName(entity, boneName);

// by hash
const retval = Citizen.invokeNative('0xBACA8FE9C76C124E', entity, boneName, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xBACA8FE9C76C124E, entity, boneName);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.