RedM Natives

GET_ENTITY_SPEED

Result is in meters per second (m/s)

Hash0xFB6BA510A533DF81
Runtime nameGetEntitySpeed
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD5037BA82E12416F

Signature

float GET_ENTITY_SPEED(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns float

Description

Result is in meters per second (m/s)

Usage

Lua
local retval = GetEntitySpeed(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFB6BA510A533DF81, entity, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetEntitySpeed(entity);

// by hash
const retval = Citizen.invokeNative('0xFB6BA510A533DF81', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xFB6BA510A533DF81, entity);

Sources

alloc8or RDR3 NativeDB

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