The carcols.dat contains a color palette and numbers to associate them with specific cars.
The file can be opened and edited with any text editor.
To comment you may put # before the message you wish to write.
The file is split into three sections; col, car, and car4
Each section starts with a section identifier and ends with the keyword "end", both in a single line.
Col section contains color palette, the data is made of text lines, every line contains 3 numbers separated with a comma ',' sign. The 3 numbers in a line specify the Red, Green and Blue component of that line's color.
The CAR section associates specific colors from the color's palette with cars. Data in a line is separated same as in COL section (with a comma ','). Every car has a line dedicated to it, followed by numbers which specify the car's color pairs (2 colors per color pair - primary and secondary). For example, on a police car, the primary color is black, and the secondary is white. Make the police car's numbers 2,0 and you'll have a blue and white police car.
alpha, 58,1, 69,1, 75,77, 18,1, 32,1, 45,45, 13,1, 34,1
List of colors in San Andres:
This is incredibly simple. To begin with, you must come up with an RGB code that matches the color you want a car to spawn as. As explained earlier, choose any number between 0 and 255 for each 3 values. If you choose 255,0,0 you will have the strongest red color possible.
Now in the COL section, add a new line at the bottom, and give it a # number that follows on from the very last color.
Make sure your new line does not have the same # number as any other line.
Once you have your new line ready, you can add a name for it on the right, similar to the other lines, but this is not necessary. You have now finished with the COL section.
Now we move onto the CAR and CAR4 sections. Find the vehicle you want your new color(s) to apply to. This vehicle should already have one or more pairs assigned to it. You can either remove these, or add your new pair to the end. Whichever you choose will make no difference, but don't forget the last number of the car's line must not have a comma ending it.
A pair can also have the same color in it twice, all this will do is match the primary and secondary colors together. Remember, many cars only make use of the primary color in a pair - the dff model file will need editing if you want the secondary color to function somewhere on a car. The secondary color (and perhaps tertiary and quaternary if using CAR4) can be set to anything should the model not actually have any materials assigned to those values.
Note: In San Andreas, having more than 179 colors will crash the game.