setMod

Used to set a vehicle mod on a vehicle based on index.

See Vehicle Mods for more information.

Declaration

vehicle.setMod(modIndex: number, modValue: number): void;

Usage

vehicle.setMod(2, 1);

Real World Example

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.modKit = 1;
vehicle.setMod(2, 1);

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

results matching ""

    No results matching ""