RedM Natives

_GET_HEADING_OF_ENTITY_BONE

Returns the rotation/heading of a specific bone on an entity as a Vector3.

Hash0x3AB3A77672F6473F
Runtime nameGetHeadingOfEntityBone
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_HEADING_OF_ENTITY_BONE(Entity entity, int boneIndex, int p2, int p3);

Parameters

NameTypeDescription
entityEntity—
boneIndexint—
p2int—
p3int—

Returns Vector3

Description

Returns the rotation/heading of a specific bone on an entity as a Vector3.
The exact meaning of p2 and p3 is not confirmed.

Usage

Lua
local retval = GetHeadingOfEntityBone(entity, boneIndex, p2, p3)

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

// by hash
const retval = Citizen.invokeNative('0x3AB3A77672F6473F', entity, boneIndex, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x3AB3A77672F6473F, entity, boneIndex, p2, p3);
  • 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

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