id

Used to get a session based ID for a vehicle. It is not persistent.

Returns a number.

Declaration

vehicle.id: number;

Usage

const currentID = vehicle.id;

Real World Example

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
console.log(vehicle.id);

These examples assume you have vehicle created or available on server-side

results matching ""

    No results matching ""