rpm

Used to get the current vehicle revolutions per minute.

Returns a number.

Declaration

vehicle.rpm: number

Usage

const currentRPM = vehicle.rpm;

Real World Example

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

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

results matching ""

    No results matching ""