GET_ENTITY_VELOCITY
Returns the velocity vector of the entity.
Signature
Vector3 GET_ENTITY_VELOCITY(Entity entity, int p1); // 0x4805D2B1D8CF94A9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | int |
Facts
| Name | GET_ENTITY_VELOCITY |
|---|---|
| Hash | 0x4805D2B1D8CF94A9 |
| 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(0x4805D2B1D8CF94A9, -- GET_ENTITY_VELOCITY
PlayerPedId(), -- Entity entity
0, -- int p1
Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)const coords = Citizen.invokeNative("0x4805D2B1D8CF94A9", // GET_ENTITY_VELOCITY
PlayerPedId(), // Entity entity
0, // int p1
Citizen.resultAsVector()
);
const [x, y, z] = coordsVector3 coords = Function.Call<Vector3>((Hash)0x4805D2B1D8CF94A9, // GET_ENTITY_VELOCITY
API.PlayerPedId(), // Entity entity
0 // int p1
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.