GET_ENTITY_SPEED
Result is in meters per second (m/s)
Hash
0xFB6BA510A533DF81Runtime name
GetEntitySpeedNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD5037BA82E12416FSignature
float GET_ENTITY_SPEED(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Description
Result is in meters per second (m/s)
Usage
local retval = GetEntitySpeed(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFB6BA510A533DF81, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntitySpeed(entity);
// by hash
const retval = Citizen.invokeNative('0xFB6BA510A533DF81', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0xFB6BA510A533DF81, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.