get the primary color of the vehicle.
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