RedM Natives

GET_ENTITY_VELOCITY

Hash0x4805D2B1D8CF94A9
Runtime nameGetEntityVelocity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4805D2B1D8CF94A9

Signature

Vector3 GET_ENTITY_VELOCITY(Entity entity, int p1);

Parameters

NameTypeDescription
entityEntity—
p1int—

Returns Vector3

Usage

Lua
local retval = GetEntityVelocity(entity, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4805D2B1D8CF94A9, entity, p1, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetEntityVelocity(entity, p1);

// by hash
const retval = Citizen.invokeNative('0x4805D2B1D8CF94A9', entity, p1, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x4805D2B1D8CF94A9, entity, p1);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.