GET_ENTITY_FORWARD_X
Returns the X component of the entity's forward vector.
Signature
float GET_ENTITY_FORWARD_X(Entity entity); // 0xDB0954E9960F6457 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| Name | GET_ENTITY_FORWARD_X |
|---|---|
| Hash | 0xDB0954E9960F6457 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xDB0954E9960F6457, -- GET_ENTITY_FORWARD_X
PlayerPedId(), -- Entity entity
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xDB0954E9960F6457", // GET_ENTITY_FORWARD_X
PlayerPedId(), // Entity entity
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xDB0954E9960F6457, // GET_ENTITY_FORWARD_X
API.PlayerPedId() // Entity entity
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.