RedM Natives

GET_ENTITY_FORWARD_Y

Gets the Y-component of the entity's forward vector.

Hash0x9A5C073ECBDA7EE7
Runtime nameGetEntityForwardY
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x866A4A5FAE349510

Signature

float GET_ENTITY_FORWARD_Y(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns float

Description

Gets the Y-component of the entity's forward vector.

Usage

Lua
local retval = GetEntityForwardY(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9A5C073ECBDA7EE7, entity, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetEntityForwardY(entity);

// by hash
const retval = Citizen.invokeNative('0x9A5C073ECBDA7EE7', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x9A5C073ECBDA7EE7, entity);

Sources

alloc8or RDR3 NativeDB

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