_GET_HEADING_OF_ENTITY_BONE
Returns the rotation of the given bone of the entity.
Signature
Vector3 _GET_HEADING_OF_ENTITY_BONE(Entity entity, int boneIndex, int p2, int p3); // 0x3AB3A77672F6473F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | boneIndex | int |
| 3 | p2 | int |
| 4 | p3 | int |
Facts
| 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.
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)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] = coordsVector3 coords = Function.Call<Vector3>((Hash)0x3AB3A77672F6473F, // _GET_HEADING_OF_ENTITY_BONE
API.PlayerPedId(), // Entity entity
0, // int boneIndex
0, // int p2
0 // int p3
);Related ENTITY natives
- GET_WORLD_POSITION_OF_ENTITY_BONE
- _GET_ENTITY_WORLD_POSITION_OF_DIMENSIONS
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- GET_ENTITY_BONE_INDEX_BY_NAME
- GET_ENTITY_HEADING
- _GET_CARRIABLE_FROM_ENTITY
- _GET_ENTITY_ALBEDO
- _GET_ENTITY_ANIM_CURRENT_TIME
- _GET_ENTITY_BY_DOORHASH
- _GET_ENTITY_CAN_BE_DAMAGED
- _GET_ENTITY_CARRY_CONFIG
- _GET_ENTITY_CARRYING_FLAG
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.