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