GET_ENTITY_SPEED_VECTOR
Returns the entity's velocity vector, optionally relative to its orientation.
Signature
Vector3 GET_ENTITY_SPEED_VECTOR(Entity entity, BOOL relative); // 0xF2DB09816A419DC5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | relative | BOOL |
Facts
| Name | GET_ENTITY_SPEED_VECTOR |
|---|---|
| Hash | 0xF2DB09816A419DC5 |
| Namespace | |
| Returns | Vector3 |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local coords = Citizen.InvokeNative(0xF2DB09816A419DC5, -- GET_ENTITY_SPEED_VECTOR
PlayerPedId(), -- Entity entity
false, -- BOOL relative
Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)const coords = Citizen.invokeNative("0xF2DB09816A419DC5", // GET_ENTITY_SPEED_VECTOR
PlayerPedId(), // Entity entity
false, // BOOL relative
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0xF2DB09816A419DC5, // GET_ENTITY_SPEED_VECTOR
API.PlayerPedId(), // Entity entity
false // BOOL relative
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.