The Lab
ENTITY native

_GET_HEADING_OF_ENTITY_BONE

returns Vector34 paramsbuild 1207

Returns the rotation of the given bone of the entity.

Signature

C
Vector3 _GET_HEADING_OF_ENTITY_BONE(Entity entity, int boneIndex, int p2, int p3); // 0x3AB3A77672F6473F b1207

Parameters

#NameType
1entityEntity
2boneIndexint
3p2int
4p3int

Facts

Facts about _GET_HEADING_OF_ENTITY_BONE
Name
_GET_HEADING_OF_ENTITY_BONE
Hash
0x3AB3A77672F6473F
Namespace
Returns
Vector3
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local coords = Citizen.InvokeNative(0x3AB3A77672F6473F, -- _GET_HEADING_OF_ENTITY_BONE
  PlayerPedId(), -- Entity entity
  0, -- int boneIndex
  0, -- int p2
  0, -- int p3
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x3AB3A77672F6473F", // _GET_HEADING_OF_ENTITY_BONE
  PlayerPedId(), // Entity entity
  0, // int boneIndex
  0, // int p2
  0, // int p3
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x3AB3A77672F6473F, // _GET_HEADING_OF_ENTITY_BONE
  API.PlayerPedId(), // Entity entity
  0, // int boneIndex
  0, // int p2
  0 // int p3
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.