modKitsCount

Used to get the total modKits that can be applied to the vehicle.

Returns a number.

Declaration

vehicle.modKitsCount: number;

Usage

const count = vehicle.modKitsCount;

Real World Example

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

if (vehicle.modKitsCount >= 1) {
    vehicle.modKit = 1;
}

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

results matching ""

    No results matching ""