RedM Natives

_GET_OFFSET_FROM_ENTITY_BONE

Attaches scenario to bone with an offset _GET_I* - _GET_M*

Hash0x5E214112806591EA
Runtime nameGetOffsetFromEntityBone
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_OFFSET_FROM_ENTITY_BONE(Entity entity, int boneIndex);

Parameters

NameTypeDescription
entityEntity—
boneIndexint—

Returns Vector3

Description

alloc8or RDR3 NativeDB

Attaches scenario to bone with an offset
_GET_I* - _GET_M*

VORPCORE RDR3natives

Return the offset from the entity for the selected bone index

Usage

Lua
local retval = GetOffsetFromEntityBone(entity, boneIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5E214112806591EA, entity, boneIndex, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetOffsetFromEntityBone(entity, boneIndex);

// by hash
const retval = Citizen.invokeNative('0x5E214112806591EA', entity, boneIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x5E214112806591EA, entity, boneIndex);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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