Used to get the current vehicle's server-side id which corresponds on client-side.

Returns a number.

Declaration number


const currentID =;

Real World Example

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

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

results matching ""

    No results matching ""