_GET_ENTITY_FORWARD_VECTOR_YX
Gets the entity's forward vector in YX(Z) eulers.
Hash
0x935A30AA88FB1014Runtime name
GetEntityForwardVectorYxNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Vector3 _GET_ENTITY_FORWARD_VECTOR_YX(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Vector3
Description
Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
Usage
local retval = GetEntityForwardVectorYx(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x935A30AA88FB1014, entity, Citizen.ResultAsVector())JavaScript and C#
const retval = GetEntityForwardVectorYx(entity);
// by hash
const retval = Citizen.invokeNative('0x935A30AA88FB1014', entity, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x935A30AA88FB1014, entity);- 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.