RedM Natives

GET_ENTITY_FORWARD_X

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

Hash0xDB0954E9960F6457
Runtime nameGetEntityForwardX
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8BB4EF4214E0E6D5

Signature

float GET_ENTITY_FORWARD_X(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns float

Description

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

Usage

Lua
local retval = GetEntityForwardX(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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