speed

Used to get the current vehicle wheel turn speed.

Returns a number.

Declaration

vehicle.speed: number

Usage

const currentSpeed = vehicle.speed;

Real World Example

// Check if the local player is in a vehicle.
if (alt.Player.local.vehicle) {
    console.log(`Speed is: ${alt.Player.local.vehicle.speed}`);
}

These examples assume you have a vehicle available on client-side.

results matching ""

    No results matching ""