RedM Natives

_GET_ENTITY_FORWARD_VECTOR_YX

Gets the entity's forward vector in YX(Z) eulers.

Hash0x935A30AA88FB1014
Runtime nameGetEntityForwardVectorYx
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Vector3 _GET_ENTITY_FORWARD_VECTOR_YX(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Vector3

Description

Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR

Usage

Lua
local retval = GetEntityForwardVectorYx(entity)

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

// by hash
const retval = Citizen.invokeNative('0x935A30AA88FB1014', entity, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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