GET_ENTITY_VELOCITY
Signature
Vector3 GET_ENTITY_VELOCITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Vector3
Usage
local retval = GetEntityVelocity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xc14c9b6b, entity, Citizen.ResultAsVector())JavaScript and C#
const retval = GetEntityVelocity(entity);
// by hash
const retval = Citizen.invokeNative('0xc14c9b6b', entity, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0xc14c9b6b, entity);See also
SET_ENTITY_VELOCITYNote that the third parameter(denoted as z) is "up and down" with positive numbers encouraging upwards movement.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.