RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_ENTITY_SPEED

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 float

Parameters

NameTypeDescription
EntityThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details