RedM Natives

GET_WORLD_POSITION_OF_ENTITY_BONE

Returns the coordinates of an entity-bone.

Hash0x82CFA50E34681CA5
Runtime nameGetWorldPositionOfEntityBone
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x44A8FCB8ED227738

Signature

Vector3 GET_WORLD_POSITION_OF_ENTITY_BONE(Entity entity, int boneIndex);

Parameters

NameTypeDescription
entityEntity—
boneIndexint—

Returns Vector3

Description

Returns the coordinates of an entity-bone.
https://github.com/femga/rdr3_discoveries/tree/master/boneNames

Usage

Lua
local retval = GetWorldPositionOfEntityBone(entity, boneIndex)

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

// by hash
const retval = Citizen.invokeNative('0x82CFA50E34681CA5', entity, boneIndex, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x82CFA50E34681CA5, entity, boneIndex);

Sources

alloc8or RDR3 NativeDB

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