GET_ENTITY_SPEED
Gets the current speed of the entity in meters per second. ``` To convert to MPH: speed * 2.236936 To convert to KPH: speed * 3.6 ```
CFX
Signature
lua
GetEntitySpeed(entity)
-- returns floatParameters
| Name | Type | Description |
|---|---|---|
| Entity | The entity to get the speed of |
Usage
lua
GetEntitySpeed(entity)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
