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

See Vehicle Mods for more information.


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


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 ""