GET_ENTITY_FORWARD_X
Gets the X-component of the entity's forward vector.
Hash
0xDB0954E9960F6457Runtime name
GetEntityForwardXNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8BB4EF4214E0E6D5Signature
float GET_ENTITY_FORWARD_X(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Description
Gets the X-component of the entity's forward vector.
Usage
local retval = GetEntityForwardX(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDB0954E9960F6457, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntityForwardX(entity);
// by hash
const retval = Citizen.invokeNative('0xDB0954E9960F6457', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xDB0954E9960F6457, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.