secondaryColor
Used to set
or get
the primary color of the vehicle.
Values between 1
and 159
.
Returns a number
.
Declaration
vehicle.secondaryColor: number;
Usage
const currentColor = vehicle.secondaryColor;
// OR
vehicle.secondaryColor = 100;
Real World Example
const vehicle = new alt.Vehicle('zentorno', 0, 0, 0, 0, 0, 0);
vehicle.secondaryColor = 100;
These examples assume you have vehicle created or available on server-side