_GET_HEADING_OF_ENTITY_BONE
Returns the rotation/heading of a specific bone on an entity as a Vector3.
Hash
0x3AB3A77672F6473FRuntime name
GetHeadingOfEntityBoneNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Vector3 _GET_HEADING_OF_ENTITY_BONE(Entity entity, int boneIndex, int p2, int p3);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
boneIndex | int | — |
p2 | int | — |
p3 | int | — |
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
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#
const retval = GetHeadingOfEntityBone(entity, boneIndex, p2, p3);
// by hash
const retval = Citizen.invokeNative('0x3AB3A77672F6473F', entity, boneIndex, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsVector());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.