GET_ENTITY_VELOCITY
Hash
0x4805D2B1D8CF94A9Runtime name
GetEntityVelocityNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4805D2B1D8CF94A9Signature
Vector3 GET_ENTITY_VELOCITY(Entity entity, int p1);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
p1 | int | — |
Returns Vector3
Usage
local retval = GetEntityVelocity(entity, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4805D2B1D8CF94A9, entity, p1, Citizen.ResultAsVector())JavaScript and C#
const retval = GetEntityVelocity(entity, p1);
// by hash
const retval = Citizen.invokeNative('0x4805D2B1D8CF94A9', entity, p1, Citizen.returnResultAnyway(), Citizen.resultAsVector());Vector3 retval = Function.Call<Vector3>((Hash)0x4805D2B1D8CF94A9, entity, p1);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.