Used to get a mod value from a vehicle.

It will return 0 if no mod is specified for that index value.

Might be useful for checking if a mod is correctly set.

Returns a number.


vehicle.getMod(modIndex: number): number;


const modValue = vehicle.getMod();

Real World Example

const vehicle = new alt.Vehicle(`elegy`, 0, 0, 0, 0, 0, 0);
const modValue = vehicle.getMod(0);

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

results matching ""

    No results matching ""