Car Colours: Difference between revisions

No edit summary
(contributions from myself, Aschratt, JernejL, Jur1zz, Seemann, steve-m, Suction Testicle Man, The Hero, and xmen)
Line 1: Line 1:
{{toc}}
'''Car colours''' are defined in the '''<code>carcols.dat</code>''' file located in the <code>\data\</code> directory of [[Grand Theft Auto III]], [[Grand Theft Auto: Vice City]], and [[Grand Theft Auto: San Andreas]], or the <code>\common\data\</code> directory of [[Grand Theft Auto IV]]. It contains a color table and its index can be used to associate a color in the table with specific vehicle models. The games use this data when generating vehicles with random colors.
The '''carcols.dat''' file sets the colors of vehicles for the [[GTA III Era]] and [[GTA IV Era]] games. When a vehicle spawns, it will take any of the colors specified in the carcols file. This is usually selected at random, although many spawns are of specific colors.


The carcols.dat file is located in the "<code>Data</code>" folder in the GTA III Era, and the "<code>Common/Data</code>" folder in the GTA IV Era. It can be modified by any simple text editor.
== Overview ==
The file is in plain text format so it can be opened with any text editor (like [[wikipedia:Microsoft Notepad|Notepad]]). Line comments are indicated by the character <code>#</code> (number sign) and empty lines are allowed. They can be placed anywhere in the file. Each section starts with a section identifier indicating how the content of the section gets interpreted by the game. The identifier is followed by the definition entries. Each entry takes up one line and follows a specific format detailed below. The end of any section is indicated by the terminating string <code>end</code>. Both the section identifier and terminating string are case sensitive. Data in each entry are usually separated by the character <code>,</code> (comma) but can be separated by <code> </code>&nbsp;(space). Extra tabs and spaces anywhere in the beginning of the line, between data, or after the data are omitted by the game and can be used to improve readability for human eyes.


The file is split up into a COL section (specifying the available colors) and a CAR section (assigning the colors to vehicles).
=== Example ===
{{Pre|
# line comment
col
# default style in col section
5,5,5
# valid style
    5 5 5 # unread data
end
}}


== COL Section ==
== Format ==
The file contains the RGB color codes for each colour to be used in the file. These colors can be referred to with their ID number, and listed (in pairs) next to each vehicle name to make those colors available for that vehicle (see CAR section). Each game has a separate default palette of colors, so carcol entries are not generally transferable between games (without the palette being altered).
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 7em;"|Section
!style="width: 8em;"|Supported games
!Description
|-
|<code>[[#col|col]]</code> ||{{Icon|t}} {{Icon|4}} ||Color table
|-
|<code>[[#car|car]]</code> ||{{Icon|t}} {{Icon|4}} ||Car color assignments
|-
|<code>[[#car4|car4]]</code> ||{{Icon|SA}} {{Icon|4}} ||
|-
|<code>[[#car3|car3]]</code> ||{{Icon|4}} ||
|}


Each COL line consists of the RGB value, the name of the color, the prefix, and description of the color (used in [[Emergency Vehicle Radio|police radio]]). After the # is a comment ignored by the game.  
=== col ===
The <code>col</code> section is used to define colors in the color table. The index of the color in the table can be used in other sections to assign the vehicle colors.


For example, <code> 88,89,90,dark,grey # 3 pewter gray poly</code> is a dark gray color, with the RGB code (88,89,90) which the developers called "pewter gray poly". The prefix (dark) and color (gray) are used together in police radio for describing the vehicle the [[Protagonist|suspect]] is in.
{{Pre|
col
# III/VC/SA
R, G, B
# IV
R, G, B, Prefix, Color
end
}}


Below are the colors available in each unedited carcols.dat file, numbered according to their respective lines.
{|class="wikitable center-col-1 center-col-2 center-col-3" style="width: 100%;"
!style="width: 4em;" |{{Icon|t}}
!style="width: 2em;" |{{Icon|4}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
|-
|colspan="2" |A,B,C ||R, G, B ||style="text-align: left;" |integer[3] ||The color in [[wikipedia:RGB color model|RGB]].
|-
| - ||D ||Prefix ||string ||Police scanner prefix name:
*-
*bright
*light
*dark
|-
| - ||E ||Color ||string ||Police scanner color name:
*black
*blue
*brown
*beige
*graphite
*green
*grey
*orange
*pink
*red
*silver
*white
*yellow
*GrottiRed
*DewbaucheGreen
|}


; GTA III
Below are the colours available in the default carcols.dat file, numbered according to their respective index in the section.
{{/gtaiiicol}}


; GTA Vice City
==== GTA III and GTA Vice City police scanner ====
{{/gtavccol}}
In GTA III and GTA Vice City, the police scanner describes the color of the vehicle the player is currently in. The association between what [[SFX]] the games play for the police scanner and the color table index is hardcoded. The police scanner supports only 95 indices in both games. For GTA III v1.0, the array containing this data starts at 0x60E910. For GTA Vice City v1.0, the array containing this data starts at 0x6D5338. In the table below, the background color of the cell is the color defined for that index. Fourteen cells have two colors &mdash; the left side for GTA III and the right side for GTA Vice City.


; GTA San Andreas
{|class="wikitable center-col-1 collapsible collapsed"
{{/gtasacol}}
!Index ||Police scanner name
|-
|style="background:#050505; color:#FFFFFF" |0 ||black
|-
|style="background:#F5F5F5; color:#000000" |1 ||white
|-
|style="background:#2A77A1; color:#FFFFFF" |2 ||blue
|-
|style="background:linear-gradient(to right, #B3363A 50%, #840410 50%); color:#FFFFFF" |3 ||red
|-
|style="background:#263739; color:#FFFFFF" |4 ||dark blue
|-
|style="background:#86446E; color:#FFFFFF" |5 ||purple
|-
|style="background:linear-gradient(to right, #F3ED47 50%, #FFB610 50%); color:#000000" |6 ||yellow
|-
|style="background:#4C75B7; color:#FFFFFF" |7 ||bright blue
|-
|style="background:linear-gradient(to right, #667292 50%, #BDBEC6 50%); color:#FFFFFF" |8 ||light blue grey
|-
|style="background:#5E7072; color:#FFFFFF" |9 ||light
|-
|style="background:linear-gradient(to right, #352224 50%, #310000 50%); color:#FFFFFF" |10 ||dark
|-
|style="background:#5A2124; color:#FFFFFF" |11 ||dark
|-
|style="background:linear-gradient(to right, #662B2B 50%, #840410 50%); color:#FFFFFF" |12 ||dark red
|-
|style="background:#63322E; color:#FFFFFF" |13 ||red
|-
|style="background:linear-gradient(to right, #842827 50%, #B51400 50%); color:#FFFFFF" |14 ||red
|-
|style="background:#8A3A42; color:#FFFFFF" |15 ||red
|-
|style="background:linear-gradient(to right, #682731 50%, #640D1A 50%); color:#FFFFFF" |16 ||red
|-
|style="background:#8B3C44; color:#FFFFFF" |17 ||red
|-
|style="background:#9E2F2B; color:#FFFFFF" |18 ||red
|-
|style="background:#A33A2F; color:#FFFFFF" |19 ||light
|-
|style="background:#D25633; color:#FFFFFF" |20 ||dark
|-
|style="background:#925635; color:#FFFFFF" |21 ||dark
|-
|style="background:linear-gradient(to right, #F4723A 50%, #B87C26 50%); color:#FFFFFF" |22 ||dark
|-
|style="background:#D35733; color:#FFFFFF" |23 ||orange
|-
|style="background:#E25A59; color:#FFFFFF" |24 ||orange
|-
|style="background:#772A25; color:#FFFFFF" |25 ||orange
|-
|style="background:#E17743; color:#FFFFFF" |26 ||orange
|-
|style="background:#C44636; color:#FFFFFF" |27 ||orange
|-
|style="background:#E17844; color:#FFFFFF" |28 ||orange
|-
|style="background:#C35938; color:#FFFFFF" |29 ||light
|-
|style="background:#464840; color:#FFFFFF" |30 ||dark
|-
|style="background:#747761; color:#FFFFFF" |31 ||dark
|-
|style="background:#757763; color:#FFFFFF" |32 ||dark
|-
|style="background:#918A3D; color:#FFFFFF" |33 ||yellow
|-
|style="background:#948C66; color:#FFFFFF" |34 ||yellow
|-
|style="background:linear-gradient(to right, #998D79 50%, #FF9C10 50%); color:#FFFFFF" |35 ||yellow
|-
|style="background:#D8A534; color:#FFFFFF" |36 ||yellow
|-
|style="background:#C9BD7D; color:#FFFFFF" |37 ||yellow
|-
|style="background:#C9C591; color:#FFFFFF" |38 ||yellow
|-
|style="background:#D4C84E; color:#FFFFFF" |39 ||light
|-
|style="background:#1A332E; color:#FFFFFF" |40 ||dark
|-
|style="background:#062505; color:#FFFFFF" |41 ||dark
|-
|style="background:#1D373F; color:#FFFFFF" |42 ||dark
|-
|style="background:#3C4A3B; color:#FFFFFF" |43 ||green
|-
|style="background:#2D5037; color:#FFFFFF" |44 ||green
|-
|style="background:linear-gradient(to right, #3A6C60 50%, #526952 50%); color:#FFFFFF" |45 ||green
|-
|style="background:linear-gradient(to right, #3A623C 50%, #2D683E 50%); color:#FFFFFF" |46 ||green
|-
|style="background:#7CA282; color:#FFFFFF" |47 ||green
|-
|style="background:#4C524E; color:#FFFFFF" |48 ||green
|-
|style="background:#56775B; color:#FFFFFF" |49 ||light
|-
|style="background:#101450; color:#FFFFFF" |50 ||dark
|-
|style="background:#485E84; color:#FFFFFF" |51 ||dark
|-
|style="background:#1C2745; color:#FFFFFF" |52 ||dark
|-
|style="background:linear-gradient(to right, #1F3468 50%, #070F37 50%); color:#FFFFFF" |53 ||blue
|-
|style="background:#2B4878; color:#FFFFFF" |54 ||blue
|-
|style="background:#475C83; color:#FFFFFF" |55 ||blue
|-
|style="background:#447C92; color:#FFFFFF" |56 ||blue
|-
|style="background:#3D67AB; color:#FFFFFF" |57 ||blue
|-
|style="background:#4B7D82; color:#FFFFFF" |58 ||blue
|-
|style="background:#80B0B7; color:#FFFFFF" |59 ||light
|-
|style="background:#3D2333; color:#FFFFFF" |60 ||dark
|-
|style="background:#1C2948; color:#FFFFFF" |61 ||dark
|-
|style="background:#343941; color:#FFFFFF" |62 ||dark
|-
|style="background:#40454C; color:#FFFFFF" |63 ||purple
|-
|style="background:#4A2D2B; color:#FFFFFF" |64 ||purple
|-
|style="background:#563E33; color:#FFFFFF" |65 ||purple
|-
|style="background:#41464C; color:#FFFFFF" |66 ||purple
|-
|style="background:#672731; color:#FFFFFF" |67 ||purple
|-
|style="background:#835A75; color:#FFFFFF" |68 ||purple
|-
|style="background:#868587; color:#FFFFFF" |69 ||light
|-
|style="background:#171717; color:#FFFFFF" |70 ||dark
|-
|style="background:#2E2E2E; color:#FFFFFF" |71 ||dark
|-
|style="background:#454545; color:#FFFFFF" |72 ||dark
|-
|style="background:#5C5C5C; color:#FFFFFF" |73 ||silver
|-
|style="background:#737373; color:#FFFFFF" |74 ||silver
|-
|style="background:#8A8A8A; color:#FFFFFF" |75 ||silver
|-
|style="background:#A1A1A1; color:#FFFFFF" |76 ||silver
|-
|style="background:#B8B8B8; color:#FFFFFF" |77 ||silver
|-
|style="background:#CFCFCF; color:#000000" |78 ||silver
|-
|style="background:linear-gradient(to right, #E6E6E6 50%, #DEDFE7 50%); color:#000000" |79 ||light
|-
|style="background:#AAAFAA; color:#FFFFFF" |80 ||light
|-
|style="background:#6A736B; color:#FFFFFF" |81 ||light
|-
|style="background:#AAAFAA; color:#FFFFFF" |82 ||light
|-
|style="background:#BBBEB5; color:#FFFFFF" |83 ||light
|-
|style="background:linear-gradient(to right, #BBBEB5 50%, #E0E0D6 50%); color:#FFFFFF" |84 ||light
|-
|style="background:#6A6F70; color:#FFFFFF" |85 ||light
|-
|style="background:#60635F; color:#FFFFFF" |86 ||light
|-
|style="background:#6A736B; color:#FFFFFF" |87 ||light
|-
|style="background:#AAAFAA; color:#FFFFFF" |88 ||light
|-
|style="background:#BBBEB5; color:#FFFFFF" |89 ||light
|-
|style="background:#21292B; color:#FFFFFF" |90 ||dark
|-
|style="background:#343842; color:#FFFFFF" |91 ||dark
|-
|style="background:#414648; color:#FFFFFF" |92 ||dark
|-
|style="background:#4E5960; color:#FFFFFF" |93 ||dark
|-
|style="background:#41454C; color:#FFFFFF" |94 ||dark
|}


; GTA IV
====GTA III====
{{/gtaivcol}}


Additional colors can be added simply by specifying a new entry in the COL section. This step is often required when installing [[modifications]], to allow the vehicles to use colors not included in the game by default. Beware, as having more than 179 colors in GTA San Andreas can crash the game.
{| cellpadding="10" cellspacing="0" style="text-align: center;"
|-
| style="background:#050505; color:#FFFFFF" | 0
| style="background:#f5f5f5; color:#FFFFFF" | 1
| style="background:#2a77a1; color:#FFFFFF" | 2
| style="background:#b3363a; color:#FFFFFF" | 3
| style="background:#263739; color:#FFFFFF" | 4
| style="background:#86446e; color:#FFFFFF" | 5
| style="background:#f3ed47; color:#FFFFFF" | 6
| style="background:#4c75b7; color:#FFFFFF" | 7
| style="background:#667292; color:#FFFFFF" | 8
| style="background:#5e7072; color:#FFFFFF" | 9
| style="background:#352224; color:#FFFFFF" | 10
| style="background:#5a2124; color:#FFFFFF" | 11
| style="background:#662b2b; color:#FFFFFF" | 12
| style="background:#63322e; color:#FFFFFF" | 13
| style="background:#842827; color:#FFFFFF" | 14
| style="background:#8a3a42; color:#FFFFFF" | 15
| style="background:#682731; color:#FFFFFF" | 16
| style="background:#8b3c44; color:#FFFFFF" | 17
| style="background:#9e2f2b; color:#FFFFFF" | 18
| style="background:#a33a2f; color:#FFFFFF" | 19
|-
| style="background:#d25633; color:#FFFFFF" | 20
| style="background:#925635; color:#FFFFFF" | 21
| style="background:#f4723a; color:#FFFFFF" | 22
| style="background:#d35733; color:#FFFFFF" | 23
| style="background:#e25a59; color:#FFFFFF" | 24
| style="background:#772a25; color:#FFFFFF" | 25
| style="background:#e17743; color:#FFFFFF" | 26
| style="background:#c44636; color:#FFFFFF" | 27
| style="background:#e17844; color:#FFFFFF" | 28
| style="background:#c35938; color:#FFFFFF" | 29
| style="background:#464840; color:#FFFFFF" | 30
| style="background:#747761; color:#FFFFFF" | 31
| style="background:#757763; color:#FFFFFF" | 32
| style="background:#918a3d; color:#FFFFFF" | 33
| style="background:#948c66; color:#FFFFFF" | 34
| style="background:#998d79; color:#FFFFFF" | 35
| style="background:#d8a534; color:#FFFFFF" | 36
| style="background:#c9bd7d; color:#FFFFFF" | 37
| style="background:#c9c591; color:#FFFFFF" | 38
| style="background:#d4c84e; color:#FFFFFF" | 39
|-
| style="background:#1a332e; color:#FFFFFF" | 40
| style="background:#242f2b; color:#FFFFFF" | 41
| style="background:#1d373f; color:#FFFFFF" | 42
| style="background:#3c4a3b; color:#FFFFFF" | 43
| style="background:#2d5037; color:#FFFFFF" | 44
| style="background:#3a6c60; color:#FFFFFF" | 45
| style="background:#3a623c; color:#FFFFFF" | 46
| style="background:#7ca282; color:#FFFFFF" | 47
| style="background:#4c524e; color:#FFFFFF" | 48
| style="background:#56775b; color:#FFFFFF" | 49
| style="background:#1c4650; color:#FFFFFF" | 50
| style="background:#485e84; color:#FFFFFF" | 51
| style="background:#1c2745; color:#FFFFFF" | 52
| style="background:#1f3468; color:#FFFFFF" | 53
| style="background:#2b4878; color:#FFFFFF" | 54
| style="background:#475c83; color:#FFFFFF" | 55
| style="background:#447c92; color:#FFFFFF" | 56
| style="background:#3d67ab; color:#FFFFFF" | 57
| style="background:#4b7d82; color:#FFFFFF" | 58
| style="background:#80b0b7; color:#FFFFFF" | 59
|-
| style="background:#3d2333; color:#FFFFFF" | 60
| style="background:#1c2948; color:#FFFFFF" | 61
| style="background:#343941; color:#FFFFFF" | 62
| style="background:#40454c; color:#FFFFFF" | 63
| style="background:#4a2d2b; color:#FFFFFF" | 64
| style="background:#563e33; color:#FFFFFF" | 65
| style="background:#41464c; color:#FFFFFF" | 66
| style="background:#672731; color:#FFFFFF" | 67
| style="background:#835a75; color:#FFFFFF" | 68
| style="background:#868587; color:#FFFFFF" | 69
| style="background:#171717; color:#FFFFFF" | 70
| style="background:#2e2e2e; color:#FFFFFF" | 71
| style="background:#454545; color:#FFFFFF" | 72
| style="background:#5c5c5c; color:#FFFFFF" | 73
| style="background:#737373; color:#FFFFFF" | 74
| style="background:#8a8a8a; color:#FFFFFF" | 75
| style="background:#a1a1a1; color:#FFFFFF" | 76
| style="background:#b8b8b8; color:#FFFFFF" | 77
| style="background:#cfcfcf; color:#FFFFFF" | 78
| style="background:#e6e6e6; color:#FFFFFF" | 79
|-
| style="background:#aaafaa; color:#FFFFFF" | 80
| style="background:#6a736b; color:#FFFFFF" | 81
| style="background:#aaafaa; color:#FFFFFF" | 82
| style="background:#bbbeb5; color:#FFFFFF" | 83
| style="background:#bbbeb5; color:#FFFFFF" | 84
| style="background:#6a6f70; color:#FFFFFF" | 85
| style="background:#60635f; color:#FFFFFF" | 86
| style="background:#6a736b; color:#FFFFFF" | 87
| style="background:#aaafaa; color:#FFFFFF" | 88
| style="background:#bbbeb5; color:#FFFFFF" | 89
| style="background:#21292b; color:#FFFFFF" | 90
| style="background:#343842; color:#FFFFFF" | 91
| style="background:#414648; color:#FFFFFF" | 92
| style="background:#4e5960; color:#FFFFFF" | 93
| style="background:#41454c; color:#FFFFFF" | 94
|}


== CAR Section ==
The CAR section is for listing the pairs of colors (from the palette) available for each vehicle.


All vehicles require (at least) two separate colors for each option. Some vehicles can use these multiple colors, whether for separate parts of the body or for decals (signs). All vehicles have some non-colorable textures (such as the interior, fender, wheels, etc.). Some vehicles are entirely texture-based and not affected by color (such as the [[Rhino]]).
====GTA Vice City====


For a vehicle that requires two colors, they are specified in pairs (with a comma after each value and pair). Using the above GTA IV color palette, this example provides the options for the [[Kuruma]] being either black and gray (1,5) or red-and-red (33,33):
{| cellpadding="10" cellspacing="0" style="text-align: center;"
|-
| style="background:#050505; color:#FFFFFF" | 0
| style="background:#f5f5f5; color:#FFFFFF" | 1
| style="background:#2a77a1; color:#FFFFFF" | 2
| style="background:#840410; color:#FFFFFF" | 3
| style="background:#263739; color:#FFFFFF" | 4
| style="background:#86446e; color:#FFFFFF" | 5
| style="background:#ffb610; color:#FFFFFF" | 6
| style="background:#4c75b7; color:#FFFFFF" | 7
| style="background:#bdbec6; color:#FFFFFF" | 8
| style="background:#5e7072; color:#FFFFFF" | 9
| style="background:#310000; color:#FFFFFF" | 10
| style="background:#5a2124; color:#FFFFFF" | 11
| style="background:#840410; color:#FFFFFF" | 12
| style="background:#63322e; color:#FFFFFF" | 13
| style="background:#b51400; color:#FFFFFF" | 14
| style="background:#8a3a42; color:#FFFFFF" | 15
| style="background:#640d1a; color:#FFFFFF" | 16
| style="background:#8b3c44; color:#FFFFFF" | 17
| style="background:#9e2f2b; color:#FFFFFF" | 18
| style="background:#a33a2f; color:#FFFFFF" | 19
|-
| style="background:#d25633; color:#FFFFFF" | 20
| style="background:#925635; color:#FFFFFF" | 21
| style="background:#b87c26; color:#FFFFFF" | 22
| style="background:#d35733; color:#FFFFFF" | 23
| style="background:#e25a59; color:#FFFFFF" | 24
| style="background:#772a25; color:#FFFFFF" | 25
| style="background:#e17743; color:#FFFFFF" | 26
| style="background:#c44636; color:#FFFFFF" | 27
| style="background:#e17844; color:#FFFFFF" | 28
| style="background:#c35938; color:#FFFFFF" | 29
| style="background:#464840; color:#FFFFFF" | 30
| style="background:#747761; color:#FFFFFF" | 31
| style="background:#757763; color:#FFFFFF" | 32
| style="background:#918a3d; color:#FFFFFF" | 33
| style="background:#948c66; color:#FFFFFF" | 34
| style="background:#ff9c10; color:#FFFFFF" | 35
| style="background:#d8a534; color:#FFFFFF" | 36
| style="background:#c9bd7d; color:#FFFFFF" | 37
| style="background:#c9c591; color:#FFFFFF" | 38
| style="background:#d4c84e; color:#FFFFFF" | 39
|-
| style="background:#1a332e; color:#FFFFFF" | 40
| style="background:#242f2b; color:#FFFFFF" | 41
| style="background:#1d373f; color:#FFFFFF" | 42
| style="background:#3c4a3b; color:#FFFFFF" | 43
| style="background:#2d5037; color:#FFFFFF" | 44
| style="background:#526952; color:#FFFFFF" | 45
| style="background:#2d683e; color:#FFFFFF" | 46
| style="background:#7ca282; color:#FFFFFF" | 47
| style="background:#4c524e; color:#FFFFFF" | 48
| style="background:#56775b; color:#FFFFFF" | 49
| style="background:#101450; color:#FFFFFF" | 50
| style="background:#485e84; color:#FFFFFF" | 51
| style="background:#1c2745; color:#FFFFFF" | 52
| style="background:#1c376f; color:#FFFFFF" | 53
| style="background:#2b4878; color:#FFFFFF" | 54
| style="background:#475c83; color:#FFFFFF" | 55
| style="background:#447c92; color:#FFFFFF" | 56
| style="background:#3d67ab; color:#FFFFFF" | 57
| style="background:#4b7d82; color:#FFFFFF" | 58
| style="background:#80b0b7; color:#FFFFFF" | 59
|-
| style="background:#3d2333; color:#FFFFFF" | 60
| style="background:#1c2948; color:#FFFFFF" | 61
| style="background:#343941; color:#FFFFFF" | 62
| style="background:#40454c; color:#FFFFFF" | 63
| style="background:#4a2d2b; color:#FFFFFF" | 64
| style="background:#563e33; color:#FFFFFF" | 65
| style="background:#41464c; color:#FFFFFF" | 66
| style="background:#672731; color:#FFFFFF" | 67
| style="background:#835a75; color:#FFFFFF" | 68
| style="background:#868587; color:#FFFFFF" | 69
| style="background:#171717; color:#FFFFFF" | 70
| style="background:#2e2e2e; color:#FFFFFF" | 71
| style="background:#454545; color:#FFFFFF" | 72
| style="background:#5c5c5c; color:#FFFFFF" | 73
| style="background:#737373; color:#FFFFFF" | 74
| style="background:#8a8a8a; color:#FFFFFF" | 75
| style="background:#a1a1a1; color:#FFFFFF" | 76
| style="background:#b8b8b8; color:#FFFFFF" | 77
| style="background:#cfcfcf; color:#FFFFFF" | 78
| style="background:#dedfe7; color:#FFFFFF" | 79
|-
| style="background:#aaafaa; color:#FFFFFF" | 80
| style="background:#6a736b; color:#FFFFFF" | 81
| style="background:#aaafaa; color:#FFFFFF" | 82
| style="background:#bbbeb5; color:#FFFFFF" | 83
| style="background:#e0dfd6; color:#FFFFFF" | 84
| style="background:#6a6f70; color:#FFFFFF" | 85
| style="background:#60635f; color:#FFFFFF" | 86
| style="background:#6a736b; color:#FFFFFF" | 87
| style="background:#aaafaa; color:#FFFFFF" | 88
| style="background:#bbbeb5; color:#FFFFFF" | 89
| style="background:#21292b; color:#FFFFFF" | 90
| style="background:#343842; color:#FFFFFF" | 91
| style="background:#414648; color:#FFFFFF" | 92
| style="background:#4e5960; color:#FFFFFF" | 93
| style="background:#41454c; color:#FFFFFF" | 94
|}


kuruma, 1,5 33,33


=== CAR3 + CAR4 ===
====GTA San Andreas====
For most of the GTA III Era, vehicles have no more than two colors, and so all have two values (as in the above example). In GTA San Andreas, some vehicles require four colors. Where 4 values are required, these vehicles are listed separately in a CAR4 section.


In GTA IV, all vehicles require a specular (shine) color and thus have 3 values, and so the main CAR section is named CAR3; whilst some also require a fourth color and are listed in CAR4. For example, a CAR4 entry could be:  
{| cellpadding="7" cellspacing="0" style="text-align: center;"
|-
| style="background:#000000; color:#FFFFFF" | 0
| style="background:#F5F5F5; color:#000000" | 1
| style="background:#2A77A1; color:#FFFFFF" | 2
| style="background:#840410; color:#FFFFFF" | 3
| style="background:#263739; color:#FFFFFF" | 4
| style="background:#86446E; color:#FFFFFF" | 5
| style="background:#D78E10; color:#FFFFFF" | 6
| style="background:#4C75B7; color:#FFFFFF" | 7
| style="background:#BDBEC6; color:#000000" | 8
| style="background:#5E7072; color:#FFFFFF" | 9
| style="background:#46597A; color:#FFFFFF" | 10
| style="background:#656A79; color:#FFFFFF" | 11
| style="background:#5D7E8D; color:#FFFFFF" | 12
| style="background:#58595A; color:#FFFFFF" | 13
| style="background:#DAD6DA; color:#000000" | 14
| style="background:#9CA1A3; color:#FFFFFF" | 15
| style="background:#335F3F; color:#FFFFFF" | 16
| style="background:#730F1A; color:#FFFFFF" | 17
| style="background:#7B0A2A; color:#FFFFFF" | 18
| style="background:#9F9D94; color:#FFFFFF" | 19
|-
| style="background:#3B4E78; color:#FFFFFF" | 20
| style="background:#732E3E; color:#FFFFFF" | 21
| style="background:#691E3B; color:#FFFFFF" | 22
| style="background:#96918C; color:#FFFFFF" | 23
| style="background:#515459; color:#FFFFFF" | 24
| style="background:#3F3E45; color:#FFFFFF" | 25
| style="background:#A5A9A7; color:#FFFFFF" | 26
| style="background:#635C5A; color:#FFFFFF" | 27
| style="background:#3D4A68; color:#FFFFFF" | 28
| style="background:#979592; color:#FFFFFF" | 29
| style="background:#421F21; color:#FFFFFF" | 30
| style="background:#5F272B; color:#FFFFFF" | 31
| style="background:#8494AB; color:#FFFFFF" | 32
| style="background:#767B7C; color:#FFFFFF" | 33
| style="background:#646464; color:#FFFFFF" | 34
| style="background:#5A5752; color:#FFFFFF" | 35
| style="background:#252527; color:#FFFFFF" | 36
| style="background:#2D3A35; color:#FFFFFF" | 37
| style="background:#93A396; color:#FFFFFF" | 38
| style="background:#6D7A88; color:#FFFFFF" | 39
|-
| style="background:#221918; color:#FFFFFF" | 40
| style="background:#6F675F; color:#FFFFFF" | 41
| style="background:#7C1C2A; color:#FFFFFF" | 42
| style="background:#5F0A15; color:#FFFFFF" | 43
| style="background:#193826; color:#FFFFFF" | 44
| style="background:#5D1B20; color:#FFFFFF" | 45
| style="background:#9D9872; color:#FFFFFF" | 46
| style="background:#7A7560; color:#FFFFFF" | 47
| style="background:#989586; color:#FFFFFF" | 48
| style="background:#ADB0B0; color:#FFFFFF" | 49
| style="background:#848988; color:#FFFFFF" | 50
| style="background:#304F45; color:#FFFFFF" | 51
| style="background:#4D6268; color:#FFFFFF" | 52
| style="background:#162248; color:#FFFFFF" | 53
| style="background:#272F4B; color:#FFFFFF" | 54
| style="background:#7D6256; color:#FFFFFF" | 55
| style="background:#9EA4AB; color:#FFFFFF" | 56
| style="background:#9C8D71; color:#FFFFFF" | 57
| style="background:#6D1822; color:#FFFFFF" | 58
| style="background:#4E6881; color:#FFFFFF" | 59
|-
| style="background:#9C9C98; color:#FFFFFF" | 60
| style="background:#917347; color:#FFFFFF" | 61
| style="background:#661C26; color:#FFFFFF" | 62
| style="background:#949D9F; color:#FFFFFF" | 63
| style="background:#A4A7A5; color:#FFFFFF" | 64
| style="background:#8E8C46; color:#FFFFFF" | 65
| style="background:#341A1E; color:#FFFFFF" | 66
| style="background:#6A7A8C; color:#FFFFFF" | 67
| style="background:#AAAD8E; color:#FFFFFF" | 68
| style="background:#AB988F; color:#FFFFFF" | 69
| style="background:#851F2E; color:#FFFFFF" | 70
| style="background:#6F8297; color:#FFFFFF" | 71
| style="background:#585853; color:#FFFFFF" | 72
| style="background:#9AA790; color:#FFFFFF" | 73
| style="background:#601A23; color:#FFFFFF" | 74
| style="background:#20202C; color:#FFFFFF" | 75
| style="background:#A4A096; color:#FFFFFF" | 76
| style="background:#AA9D84; color:#FFFFFF" | 77
| style="background:#78222B; color:#FFFFFF" | 78
| style="background:#0E316D; color:#FFFFFF" | 79
|-
| style="background:#722A3F; color:#FFFFFF" | 80
| style="background:#7B715E; color:#FFFFFF" | 81
| style="background:#741D28; color:#FFFFFF" | 82
| style="background:#1E2E32; color:#FFFFFF" | 83
| style="background:#4D322F; color:#FFFFFF" | 84
| style="background:#7C1B44; color:#FFFFFF" | 85
| style="background:#2E5B20; color:#FFFFFF" | 86
| style="background:#395A83; color:#FFFFFF" | 87
| style="background:#6D2837; color:#FFFFFF" | 88
| style="background:#A7A28F; color:#FFFFFF" | 89
| style="background:#AFB1B1; color:#FFFFFF" | 90
| style="background:#364155; color:#FFFFFF" | 91
| style="background:#6D6C6E; color:#FFFFFF" | 92
| style="background:#0F6A89; color:#FFFFFF" | 93
| style="background:#204B6B; color:#FFFFFF" | 94
| style="background:#2B3E57; color:#FFFFFF" | 95
| style="background:#9B9F9D; color:#FFFFFF" | 96
| style="background:#6C8495; color:#FFFFFF" | 97
| style="background:#4D5D60; color:#FFFFFF" | 98
| style="background:#AE9B7F; color:#FFFFFF" | 99
|-
| style="background:#406C8F; color:#FFFFFF" | 100
| style="background:#1F253B; color:#FFFFFF" | 101
| style="background:#AB9276; color:#FFFFFF" | 102
| style="background:#134573; color:#FFFFFF" | 103
| style="background:#96816C; color:#FFFFFF" | 104
| style="background:#64686A; color:#FFFFFF" | 105
| style="background:#105082; color:#FFFFFF" | 106
| style="background:#A19983; color:#FFFFFF" | 107
| style="background:#385694; color:#FFFFFF" | 108
| style="background:#525661; color:#FFFFFF" | 109
| style="background:#7F6956; color:#FFFFFF" | 110
| style="background:#8C929A; color:#FFFFFF" | 111
| style="background:#596E87; color:#FFFFFF" | 112
| style="background:#473532; color:#FFFFFF" | 113
| style="background:#44624F; color:#FFFFFF" | 114
| style="background:#730A27; color:#FFFFFF" | 115
| style="background:#223457; color:#FFFFFF" | 116
| style="background:#640D1B; color:#FFFFFF" | 117
| style="background:#A3ADC6; color:#FFFFFF" | 118
| style="background:#695853; color:#FFFFFF" | 119
|-
| style="background:#9B8B80; color:#FFFFFF" | 120
| style="background:#620B1C; color:#FFFFFF" | 121
| style="background:#5B5D5E; color:#FFFFFF" | 122
| style="background:#624428; color:#FFFFFF" | 123
| style="background:#731827; color:#FFFFFF" | 124
| style="background:#1B376D; color:#FFFFFF" | 125
| style="background:#EC6AAE; color:#FFFFFF" | 126
|}


[[futo]], 32,0,30,1,  0,0,8,133


Trainers and car-spawning utilities can override the color of a vehicle whilst spawning or later, and do not rely entirely on the colors available to that vehicle in the CAR section of carcols. However, they are restricted to the colors available in the COL palette at the top of the carcols file.
====GTA Liberty City Stories====


== Original Files ==
{| cellpadding="10" cellspacing="0" style="text-align: center;"
|-
| style="background:#0f0f0f; color:#FFFFFF" | 0
| style="background:#cacaca; color:#FFFFFF" | 1
| style="background:#2a77a1; color:#FFFFFF" | 2
| style="background:#8f0a0a; color:#FFFFFF" | 3
| style="background:#01244f; color:#FFFFFF" | 4
| style="background:#86446e; color:#FFFFFF" | 5
| style="background:#ffb610; color:#FFFFFF" | 6
| style="background:#4c75b7; color:#FFFFFF" | 7
| style="background:#bdbec6; color:#FFFFFF" | 8
| style="background:#5e7072; color:#FFFFFF" | 9
| style="background:#46597a; color:#FFFFFF" | 10
| style="background:#656a79; color:#FFFFFF" | 11
| style="background:#5d7e8d; color:#FFFFFF" | 12
| style="background:#58595a; color:#FFFFFF" | 13
| style="background:#d6dad6; color:#FFFFFF" | 14
| style="background:#9ca1a3; color:#FFFFFF" | 15
| style="background:#335f3f; color:#FFFFFF" | 16
| style="background:#730e1a; color:#FFFFFF" | 17
| style="background:#7b0a2a; color:#FFFFFF" | 18
| style="background:#9f9d94; color:#FFFFFF" | 19
|-
| style="background:#3b4e78; color:#FFFFFF" | 20
| style="background:#732e3e; color:#FFFFFF" | 21
| style="background:#691e3b; color:#FFFFFF" | 22
| style="background:#96918c; color:#FFFFFF" | 23
| style="background:#515459; color:#FFFFFF" | 24
| style="background:#3f3e45; color:#FFFFFF" | 25
| style="background:#a5a9a7; color:#FFFFFF" | 26
| style="background:#635c5a; color:#FFFFFF" | 27
| style="background:#3d4a68; color:#FFFFFF" | 28
| style="background:#979592; color:#FFFFFF" | 29
| style="background:#421f21; color:#FFFFFF" | 30
| style="background:#5f272b; color:#FFFFFF" | 31
| style="background:#8494ab; color:#FFFFFF" | 32
| style="background:#767b7c; color:#FFFFFF" | 33
| style="background:#646464; color:#FFFFFF" | 34
| style="background:#5a5752; color:#FFFFFF" | 35
| style="background:#252527; color:#FFFFFF" | 36
| style="background:#2d3a35; color:#FFFFFF" | 37
| style="background:#93a396; color:#FFFFFF" | 38
| style="background:#6d7a88; color:#FFFFFF" | 39
|-
| style="background:#221918; color:#FFFFFF" | 40
| style="background:#6f675f; color:#FFFFFF" | 41
| style="background:#7c1c2a; color:#FFFFFF" | 42
| style="background:#5f0a15; color:#FFFFFF" | 43
| style="background:#193826; color:#FFFFFF" | 44
| style="background:#5d1b20; color:#FFFFFF" | 45
| style="background:#9d9872; color:#FFFFFF" | 46
| style="background:#7a7560; color:#FFFFFF" | 47
| style="background:#989586; color:#FFFFFF" | 48
| style="background:#adb0b0; color:#FFFFFF" | 49
| style="background:#848988; color:#FFFFFF" | 50
| style="background:#304f45; color:#FFFFFF" | 51
| style="background:#4d6268; color:#FFFFFF" | 52
| style="background:#162248; color:#FFFFFF" | 53
| style="background:#272f4b; color:#FFFFFF" | 54
| style="background:#7d6256; color:#FFFFFF" | 55
| style="background:#9ea4ab; color:#FFFFFF" | 56
| style="background:#9c8d71; color:#FFFFFF" | 57
| style="background:#6d1822; color:#FFFFFF" | 58
| style="background:#4e6881; color:#FFFFFF" | 59
|-
| style="background:#9c9c98; color:#FFFFFF" | 60
| style="background:#917347; color:#FFFFFF" | 61
| style="background:#661c26; color:#FFFFFF" | 62
| style="background:#949d9f; color:#FFFFFF" | 63
| style="background:#a4a7a5; color:#FFFFFF" | 64
| style="background:#8e8c46; color:#FFFFFF" | 65
| style="background:#341a1e; color:#FFFFFF" | 66
| style="background:#6a7a8c; color:#FFFFFF" | 67
| style="background:#aaad8e; color:#FFFFFF" | 68
| style="background:#ab988f; color:#FFFFFF" | 69
| style="background:#851f2e; color:#FFFFFF" | 70
| style="background:#6f8297; color:#FFFFFF" | 71
| style="background:#585853; color:#FFFFFF" | 72
| style="background:#9aa790; color:#FFFFFF" | 73
| style="background:#601a23; color:#FFFFFF" | 74
| style="background:#3b3b4b; color:#FFFFFF" | 75
| style="background:#a4a096; color:#FFFFFF" | 76
| style="background:#aa9d84; color:#FFFFFF" | 77
| style="background:#78222b; color:#FFFFFF" | 78
| style="background:#0e316d; color:#FFFFFF" | 79
|-
| style="background:#722a3f; color:#FFFFFF" | 80
| style="background:#7b715e; color:#FFFFFF" | 81
| style="background:#741d28; color:#FFFFFF" | 82
| style="background:#1e2e32; color:#FFFFFF" | 83
| style="background:#4d322f; color:#FFFFFF" | 84
| style="background:#7c1b44; color:#FFFFFF" | 85
| style="background:#2e5b20; color:#FFFFFF" | 86
| style="background:#395a83; color:#FFFFFF" | 87
| style="background:#6d2837; color:#FFFFFF" | 88
| style="background:#a7a28f; color:#FFFFFF" | 89
| style="background:#afb1b1; color:#FFFFFF" | 90
| style="background:#364155; color:#FFFFFF" | 91
| style="background:#6d6c6e; color:#FFFFFF" | 92
| style="background:#0f6a89; color:#FFFFFF" | 93
| style="background:#204b6b; color:#FFFFFF" | 94
| style="background:#efe8c8; color:#FFFFFF" | 95
| style="background:#0c275e; color:#FFFFFF" | 96
| style="background:#ffffff; color:#FFFFFF" | 97
| style="background:#5e7072; color:#FFFFFF" | 98
| style="background:#2b2f3a; color:#FFFFFF" | 99
|-
| style="background:#414f37; color:#FFFFFF" | 100
|}
 
 
====GTA Vice City Stories====
 
{| cellpadding="10" cellspacing="0" style="text-align: center;"
|-
| style="background:#0F0F0F; color:#FFFFFF" | 0
| style="background:#BCBCB4; color:#000000" | 1
| style="background:#2A77A1; color:#FFFFFF" | 2
| style="background:#872020; color:#FFFFFF" | 3
| style="background:#01244F; color:#FFFFFF" | 4
| style="background:#86446E; color:#FFFFFF" | 5
| style="background:#FFB610; color:#000000" | 6
| style="background:#4C75B7; color:#FFFFFF" | 7
| style="background:#BDBEC6; color:#000000" | 8
| style="background:#5E7072; color:#FFFFFF" | 9
| style="background:#46597A; color:#FFFFFF" | 10
| style="background:#656A79; color:#FFFFFF" | 11
| style="background:#5D7E8D; color:#FFFFFF" | 12
| style="background:#58595A; color:#FFFFFF" | 13
| style="background:#D6DAD6; color:#000000" | 14
| style="background:#9CA1A3; color:#FFFFFF" | 15
| style="background:#335F3F; color:#FFFFFF" | 16
| style="background:#731E28; color:#FFFFFF" | 17
| style="background:#7B1434; color:#FFFFFF" | 18
| style="background:#9F9D94; color:#FFFFFF" | 19
|-
| style="background:#3B4E78; color:#FFFFFF" | 20
| style="background:#732E3E; color:#FFFFFF" | 21
| style="background:#691E3B; color:#FFFFFF" | 22
| style="background:#96918C; color:#FFFFFF" | 23
| style="background:#515459; color:#FFFFFF" | 24
| style="background:#3F3E45; color:#FFFFFF" | 25
| style="background:#A5A9A7; color:#FFFFFF" | 26
| style="background:#635C5A; color:#FFFFFF" | 27
| style="background:#3D4A68; color:#FFFFFF" | 28
| style="background:#979592; color:#FFFFFF" | 29
| style="background:#421F21; color:#FFFFFF" | 30
| style="background:#5F272B; color:#FFFFFF" | 31
| style="background:#8494AB; color:#FFFFFF" | 32
| style="background:#767B7C; color:#FFFFFF" | 33
| style="background:#646464; color:#FFFFFF" | 34
| style="background:#5A5752; color:#FFFFFF" | 35
| style="background:#252527; color:#FFFFFF" | 36
| style="background:#2D3A35; color:#FFFFFF" | 37
| style="background:#93A396; color:#000000" | 38
| style="background:#6D7A88; color:#FFFFFF" | 39
|-
| style="background:#221918; color:#FFFFFF" | 40
| style="background:#6F675F; color:#FFFFFF" | 41
| style="background:#7C2634; color:#FFFFFF" | 42
| style="background:#550A15; color:#FFFFFF" | 43
| style="background:#193826; color:#FFFFFF" | 44
| style="background:#5D1E28; color:#FFFFFF" | 45
| style="background:#9D9872; color:#000000" | 46
| style="background:#7A7560; color:#FFFFFF" | 47
| style="background:#989586; color:#FFFFFF" | 48
| style="background:#ADB0B0; color:#000000" | 49
| style="background:#848988; color:#FFFFFF" | 50
| style="background:#304F45; color:#FFFFFF" | 51
| style="background:#4D6268; color:#FFFFFF" | 52
| style="background:#162248; color:#FFFFFF" | 53
| style="background:#272F4B; color:#FFFFFF" | 54
| style="background:#7D6256; color:#FFFFFF" | 55
| style="background:#9EA4AB; color:#000000" | 56
| style="background:#9C8D71; color:#FFFFFF" | 57
| style="background:#631822; color:#FFFFFF" | 58
| style="background:#4E6881; color:#FFFFFF" | 59
|-
| style="background:#9C9C98; color:#FFFFFF" | 60
| style="background:#917347; color:#FFFFFF" | 61
| style="background:#662832; color:#FFFFFF" | 62
| style="background:#949D9F; color:#FFFFFF" | 63
| style="background:#A4A7A5; color:#000000" | 64
| style="background:#8E8C46; color:#FFFFFF" | 65
| style="background:#341A1E; color:#FFFFFF" | 66
| style="background:#6A7A8C; color:#FFFFFF" | 67
| style="background:#AAAD8E; color:#FFFFFF" | 68
| style="background:#AB988F; color:#FFFFFF" | 69
| style="background:#853241; color:#FFFFFF" | 70
| style="background:#6F8297; color:#FFFFFF" | 71
| style="background:#585853; color:#FFFFFF" | 72
| style="background:#9AA790; color:#FFFFFF" | 73
| style="background:#601A23; color:#FFFFFF" | 74
| style="background:#3B3B4B; color:#FFFFFF" | 75
| style="background:#A4A096; color:#000000" | 76
| style="background:#AA9D84; color:#FFFFFF" | 77
| style="background:#782C35; color:#FFFFFF" | 78
| style="background:#0E316D; color:#FFFFFF" | 79
|-
| style="background:#682A3F; color:#FFFFFF" | 80
| style="background:#7B715E; color:#FFFFFF" | 81
| style="background:#742832; color:#FFFFFF" | 82
| style="background:#1E2E32; color:#FFFFFF" | 83
| style="background:#4D322F; color:#FFFFFF" | 84
| style="background:#7C254E; color:#FFFFFF" | 85
| style="background:#2E5B20; color:#FFFFFF" | 86
| style="background:#395A83; color:#FFFFFF" | 87
| style="background:#6D3241; color:#FFFFFF" | 88
| style="background:#A7A28F; color:#FFFFFF" | 89
| style="background:#AFB1B1; color:#000000" | 90
| style="background:#364155; color:#FFFFFF" | 91
| style="background:#6D6C6E; color:#FFFFFF" | 92
| style="background:#0F6A89; color:#FFFFFF" | 93
| style="background:#204B6B; color:#FFFFFF" | 94
| style="background:#EFE8C8; color:#000000" | 95
| style="background:#0C275E; color:#FFFFFF" | 96
| style="background:#FFFFFF; color:#000000" | 97
| style="background:#5E7072; color:#FFFFFF" | 98
| style="background:#2B2F3A; color:#FFFFFF" | 99
|-
| style="background:#414F37; color:#FFFFFF" | 100
| style="background:#FFEF64; color:#000000" | 101
|}
 
 
====GTA IV====
 
{| cellpadding="7" cellspacing="0" style="text-align: center;"
|-
| style="background:rgb(10,10,10); color:#FFFFFF" | 0
| style="background:rgb(37,37,39); color:#FFFFFF" | 1
| style="background:rgb(101,106,121); color:#FFFFFF" | 2
| style="background:rgb(88,89,90); color:#FFFFFF" | 3
| style="background:rgb(156,161,163); color:#FFFFFF" | 4
| style="background:rgb(150,145,140); color:#FFFFFF" | 5
| style="background:rgb(81,84,89); color:#FFFFFF" | 6
| style="background:rgb(63,62,69); color:#FFFFFF" | 7
| style="background:rgb(165,169,167); color:#FFFFFF" | 8
| style="background:rgb(151,149,146); color:#FFFFFF" | 9
| style="background:rgb(118,123,124); color:#FFFFFF" | 10
| style="background:rgb(90,87,82); color:#FFFFFF" | 11
| style="background:rgb(173,176,176); color:#FFFFFF" | 12
| style="background:rgb(132,137,136); color:#FFFFFF" | 13
| style="background:rgb(148,157,159); color:#FFFFFF" | 14
| style="background:rgb(164,167,165); color:#FFFFFF" | 15
| style="background:rgb(88,88,83); color:#FFFFFF" | 16
| style="background:rgb(164,160,150); color:#FFFFFF" | 17
| style="background:rgb(175,177,177); color:#FFFFFF" | 18
| style="background:rgb(109,108,110); color:#FFFFFF" | 19
|-
| style="background:rgb(100,104,106); color:#FFFFFF" | 20
| style="background:rgb(82,86,97); color:#FFFFFF" | 21
| style="background:rgb(140,146,154); color:#FFFFFF" | 22
| style="background:rgb(91,93,94); color:#FFFFFF" | 23
| style="background:rgb(189,190,198); color:#000000" | 24
| style="background:rgb(182,182,182); color:#000000" | 25
| style="background:rgb(100,100,100); color:#FFFFFF" | 26
| style="background:rgb(226,6,6); color:#FFFFFF" | 27
| style="background:rgb(150,8,0); color:#FFFFFF" | 28
| style="background:rgb(107,0,0); color:#FFFFFF" | 29
| style="background:rgb(97,16,9); color:#FFFFFF" | 30
| style="background:rgb(74,10,10); color:#FFFFFF" | 31
| style="background:rgb(115,11,11); color:#FFFFFF" | 32
| style="background:rgb(87,7,7); color:#FFFFFF" | 33
| style="background:rgb(38,3,6); color:#FFFFFF" | 34
| style="background:rgb(158,0,0); color:#FFFFFF" | 35
| style="background:rgb(20,0,2); color:#FFFFFF" | 36
| style="background:rgb(15,4,4); color:#FFFFFF" | 37
| style="background:rgb(15,8,10); color:#FFFFFF" | 38
| style="background:rgb(57,25,29); color:#FFFFFF" | 39
|-
| style="background:rgb(85,39,37); color:#FFFFFF" | 40
| style="background:rgb(76,41,41); color:#FFFFFF" | 41
| style="background:rgb(116,29,40); color:#FFFFFF" | 42
| style="background:rgb(109,40,55); color:#FFFFFF" | 43
| style="background:rgb(115,10,39); color:#FFFFFF" | 44
| style="background:rgb(100,13,27); color:#FFFFFF" | 45
| style="background:rgb(98,11,28); color:#FFFFFF" | 46
| style="background:rgb(115,24,39); color:#FFFFFF" | 47
| style="background:rgb(171,152,143); color:#000000" | 48
| style="background:rgb(32,32,44); color:#FFFFFF" | 49
| style="background:rgb(68,98,79); color:#FFFFFF" | 50
| style="background:rgb(46,91,32); color:#FFFFFF" | 51
| style="background:rgb(30,46,50); color:#FFFFFF" | 52
| style="background:rgb(48,79,69); color:#FFFFFF" | 53
| style="background:rgb(77,98,104); color:#FFFFFF" | 54
| style="background:rgb(94,112,114); color:#FFFFFF" | 55
| style="background:rgb(25,56,38); color:#FFFFFF" | 56
| style="background:rgb(45,58,53); color:#FFFFFF" | 57
| style="background:rgb(51,95,63); color:#FFFFFF" | 58
| style="background:rgb(71,120,60); color:#FFFFFF" | 59
|-
| style="background:rgb(147,163,150); color:#FFFFFF" | 60
| style="background:rgb(154,167,144); color:#FFFFFF" | 61
| style="background:rgb(38,55,57); color:#FFFFFF" | 62
| style="background:rgb(76,117,183); color:#FFFFFF" | 63
| style="background:rgb(70,89,122); color:#FFFFFF" | 64
| style="background:rgb(93,126,141); color:#FFFFFF" | 65
| style="background:rgb(59,78,120); color:#FFFFFF" | 66
| style="background:rgb(61,74,104); color:#FFFFFF" | 67
| style="background:rgb(109,122,136); color:#FFFFFF" | 68
| style="background:rgb(22,34,72); color:#FFFFFF" | 69
| style="background:rgb(39,47,75); color:#FFFFFF" | 70
| style="background:rgb(78,104,129); color:#FFFFFF" | 71
| style="background:rgb(106,122,140); color:#FFFFFF" | 72
| style="background:rgb(111,130,151); color:#FFFFFF" | 73
| style="background:rgb(14,49,109); color:#FFFFFF" | 74
| style="background:rgb(57,90,131); color:#FFFFFF" | 75
| style="background:rgb(32,75,107); color:#FFFFFF" | 76
| style="background:rgb(43,62,87); color:#FFFFFF" | 77
| style="background:rgb(54,65,85); color:#FFFFFF" | 78
| style="background:rgb(108,132,149); color:#FFFFFF" | 79
|-
| style="background:rgb(77,93,96); color:#FFFFFF" | 80
| style="background:rgb(64,108,143); color:#FFFFFF" | 81
| style="background:rgb(19,69,115); color:#FFFFFF" | 82
| style="background:rgb(16,80,130); color:#FFFFFF" | 83
| style="background:rgb(56,86,148); color:#FFFFFF" | 84
| style="background:rgb(0,28,50); color:#FFFFFF" | 85
| style="background:rgb(89,110,135); color:#FFFFFF" | 86
| style="background:rgb(34,52,87); color:#FFFFFF" | 87
| style="background:rgb(32,32,44); color:#FFFFFF" | 88
| style="background:rgb(245,137,15); color:#FFFFFF" | 89
| style="background:rgb(145,115,71); color:#FFFFFF" | 90
| style="background:rgb(142,140,70); color:#FFFFFF" | 91
| style="background:rgb(170,173,142); color:#FFFFFF" | 92
| style="background:rgb(174,155,127); color:#FFFFFF" | 93
| style="background:rgb(150,129,108); color:#FFFFFF" | 94
| style="background:rgb(122,117,96); color:#FFFFFF" | 95
| style="background:rgb(157,152,114); color:#FFFFFF" | 96
| style="background:rgb(152,149,134); color:#FFFFFF" | 97
| style="background:rgb(156,141,113); color:#FFFFFF" | 98
| style="background:rgb(105,30,59); color:#FFFFFF" | 99
|-
| style="background:rgb(114,42,63); color:#FFFFFF" | 100
| style="background:rgb(124,27,68); color:#FFFFFF" | 101
| style="background:rgb(34,25,24); color:#FFFFFF" | 102
| style="background:rgb(127,105,86); color:#FFFFFF" | 103
| style="background:rgb(71,53,50); color:#FFFFFF" | 104
| style="background:rgb(105,88,83); color:#FFFFFF" | 105
| style="background:rgb(98,68,40); color:#FFFFFF" | 106
| style="background:rgb(125,98,86); color:#FFFFFF" | 107
| style="background:rgb(170,157,132); color:#FFFFFF" | 108
| style="background:rgb(123,113,94); color:#FFFFFF" | 109
| style="background:rgb(171,146,118); color:#FFFFFF" | 110
| style="background:rgb(99,92,90); color:#FFFFFF" | 111
| style="background:rgb(201,201,201); color:#000000" | 112
| style="background:rgb(214,218,214); color:#000000" | 113
| style="background:rgb(159,157,148); color:#FFFFFF" | 114
| style="background:rgb(147,163,150); color:#FFFFFF" | 115
| style="background:rgb(156,156,152); color:#FFFFFF" | 116
| style="background:rgb(167,162,143); color:#FFFFFF" | 117
| style="background:rgb(15,106,137); color:#FFFFFF" | 118
| style="background:rgb(161,153,131); color:#FFFFFF" | 119
|-
| style="background:rgb(163,173,198); color:#FFFFFF" | 120
| style="background:rgb(155,139,128); color:#FFFFFF" | 121
| style="background:rgb(132,148,171); color:#FFFFFF" | 122
| style="background:rgb(158,164,171); color:#FFFFFF" | 123
| style="background:rgb(134,68,110); color:#FFFFFF" | 124
| style="background:rgb(226,6,6); color:#FFFFFF" | 125
| style="background:rgb(71,120,60); color:#FFFFFF" | 126
| style="background:rgb(215,142,16); color:#FFFFFF" | 127
| style="background:rgb(42,119,161); color:#FFFFFF" | 128
| style="background:rgb(66,31,33); color:#FFFFFF" | 129
| style="background:rgb(111,103,95); color:#FFFFFF" | 130
| style="background:rgb(252,38,0); color:#FFFFFF" | 131
| style="background:rgb(252,109,0); color:#FFFFFF" | 132
| style="background:rgb(255,255,255); color:#000000" | 133
| style="background:rgb(245,180,0); color:#FFFFFF" | 134
| style="background:rgb(5,5,5); color:#FFFFFF" | 135
| style="background:rgb(189,149,75); color:#FFFFFF" | 136
|}
134, 135, 136 - TBoGT
 
===car===
The <code>car</code> section contains pairs of colors assigned to a vehicle model. Vehicles that spawn with a randomized color will choose a random pair of colors for the vehicle model from this section.
 
{{Pre|
car
# III/VC/SA
ModelName, FirstColor1, SecondColor1, FirstColor2, SecondColor2, FirstColor3, SecondColor3, FirstColor4, SecondColor4, FirstColor5, SecondColor5, FirstColor6, SecondColor6, FirstColor7, SecondColor7, FirstColor8, SecondColor8
# IV
ModelName, FirstColor1, SecondColor1, FirstColor2, SecondColor2, FirstColor3, SecondColor3, FirstColor4, SecondColor4, FirstColor5, SecondColor5, FirstColor6, SecondColor6, FirstColor7, SecondColor7, FirstColor8, SecondColor8, FirstColor9, SecondColor9, FirstColor10, SecondColor10, FirstColor11, SecondColor11, FirstColor12, SecondColor12, FirstColor13, SecondColor13, FirstColor14, SecondColor14, FirstColor15, SecondColor15, FirstColor16, SecondColor16, FirstColor17, SecondColor17, FirstColor18, SecondColor18, FirstColor19, SecondColor19, FirstColor20, SecondColor20, FirstColor21, SecondColor21, FirstColor22, SecondColor22, FirstColor23, SecondColor23, FirstColor24, SecondColor24
end
}}
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 3em;" |{{Icon|t}} {{Icon|4}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
|-
|A ||ModelName ||string ||Model name of vehicle.
|-
|B ||FirstColor1 ||integer ||First car color of first pair. The value represents the index number in the <code>col</code> section starting with 0.
|-
|C ||SecondColor1 ||integer ||Second car color of first pair. The value represents the index number in the <code>col</code> section starting with 0.
|-
|D ||FirstColor2 ||integer ||First car color of second pair.
|-
|E ||SecondColor2 ||integer ||Second car color of second pair.
|-
|colspan="4" style="text-align: left;" |Repeat for a total of 8 pairs for GTA III, GTA Vice City, and GTA San Andreas; and 24 pairs for GTA IV.
|}
It is not required to fill all 8 or 24 pairs of colors for each model; the games will ignore unused pairs. It is not even required for a model to have an entry in this section; the games will default to the pair 0,0.
 
===car3===
Only used in GTA IV, the <code>car3</code> section contains the same data as <code>car</code> section from previous games but has a third value, the specular colour.
{{Pre|
car3
ModelName, FirstColor1, SecondColor1, SpecularColor1, FirstColor2, SecondColor2, SpecularColor2, FirstColor3, SecondColor3, SpecularColor3, FirstColor4, SecondColor4, SpecularColor4, FirstColor5, SecondColor5, SpecularColor5, FirstColor6, SecondColor6, SpecularColor6, FirstColor7, SecondColor7, SpecularColor7, FirstColor8, SecondColor8, SpecularColor8, FirstColor9, SecondColor9, SpecularColor9, FirstColor10, SecondColor10, SpecularColor10, FirstColor11, SecondColor11, SpecularColor11, FirstColor12, SecondColor12, SpecularColor12, FirstColor13, SecondColor13, SpecularColor13, FirstColor14, SecondColor14, SpecularColor14, FirstColor15, SecondColor15, SpecularColor15, FirstColor16, SecondColor16, SpecularColor16, FirstColor17, SecondColor17, SpecularColor17, FirstColor18, SecondColor18, SpecularColor18, FirstColor19, SecondColor19, SpecularColor19, FirstColor20, SecondColor20, SpecularColor20, FirstColor21, SecondColor21, SpecularColor21, FirstColor22, SecondColor22, SpecularColor22, FirstColor23, SecondColor23, SpecularColor23, FirstColor24, SecondColor24, SpecularColor24
end
}}
 
===car4===
 
Included in GTASA, this section contains the same data as CAR section but has colours in sets of 4 instead of 2. These cars will need to have not only primary and secondary materials assigned within the dff, but also tertiary and quaternary materials. By default, only the Campervan, Cement Mixer and Squalo boat use 4 colours in the game.
 
In GTA4 the data is the same as in the CAR3 section but with a fourth value, the tertiary colour.
 
==Adding new colours==
 
This is incredibly simple. To begin with, you must come up with an RGB code that matches the colour 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 colour 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 colour.
 
'''''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 colour(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 colour in it twice, all this will do is match the primary and secondary colours together. Remember, many cars only make use of the primary colour in a pair - the dff model file will need editing if you want the secondary colour to function somewhere on a car. The secondary colour (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.
 
==Adding carcols functionality to your own model (ZModeler only)==
 
This can be achieved simply using tags on the ends of your model's material names. You can force the game to apply the primary colour setting to a material by adding:
 
[prim]
 
to the end of the material name, separated by a space. Secondary is [sec], tertiary is [ter] and quaternary is [qua]. A model can have multiple materials using a specific data type.
 
==Tool==
* [http://www.gtagarage.com/mods/show.php?id=5163 X Car Colors Editor]
 
== Original files ==
On the following pages are the original Carcols.dat files from each game, and a rendering of each game's default color palette:
On the following pages are the original Carcols.dat files from each game, and a rendering of each game's default color palette:
* [[/gtaiii|GTA III]]
* [[/gtaiii|GTA III]]
Line 57: Line 1,086:
* [[/gtav|GTA V]]
* [[/gtav|GTA V]]


{{modding}}{{lowercase title}}
{{3-navi}}
 
{{VC-navi}}
[[Category:Modding]]
[[Category:Vehicle Formats]]

Revision as of 23:10, 31 August 2018

Car colours are defined in the carcols.dat file located in the \data\ directory of Grand Theft Auto III, Grand Theft Auto: Vice City, and Grand Theft Auto: San Andreas, or the \common\data\ directory of Grand Theft Auto IV. It contains a color table and its index can be used to associate a color in the table with specific vehicle models. The games use this data when generating vehicles with random colors.

Overview

The file is in plain text format so it can be opened with any text editor (like Notepad). Line comments are indicated by the character # (number sign) and empty lines are allowed. They can be placed anywhere in the file. Each section starts with a section identifier indicating how the content of the section gets interpreted by the game. The identifier is followed by the definition entries. Each entry takes up one line and follows a specific format detailed below. The end of any section is indicated by the terminating string end. Both the section identifier and terminating string are case sensitive. Data in each entry are usually separated by the character , (comma) but can be separated by  (space). Extra tabs and spaces anywhere in the beginning of the line, between data, or after the data are omitted by the game and can be used to improve readability for human eyes.

Example

# line comment
col
# default style in col section
5,5,5
# valid style
	    5 5 5 # unread data
end

Format

Section Supported games Description
col GTA III GTA Vice City GTA San Andreas GTA IV Color table
car GTA III GTA Vice City GTA San Andreas GTA IV Car color assignments
car4 GTA San Andreas GTA IV
car3 GTA IV

col

The col section is used to define colors in the color table. The index of the color in the table can be used in other sections to assign the vehicle colors.

col
# III/VC/SA
R, G, B
# IV
R, G, B, Prefix, Color
end
GTA III GTA Vice City GTA San Andreas GTA IV Identifier Type Description
A,B,C R, G, B integer[3] The color in RGB.
- D Prefix string Police scanner prefix name:
  • -
  • bright
  • light
  • dark
- E Color string Police scanner color name:
  • black
  • blue
  • brown
  • beige
  • graphite
  • green
  • grey
  • orange
  • pink
  • red
  • silver
  • white
  • yellow
  • GrottiRed
  • DewbaucheGreen

Below are the colours available in the default carcols.dat file, numbered according to their respective index in the section.

GTA III and GTA Vice City police scanner

In GTA III and GTA Vice City, the police scanner describes the color of the vehicle the player is currently in. The association between what SFX the games play for the police scanner and the color table index is hardcoded. The police scanner supports only 95 indices in both games. For GTA III v1.0, the array containing this data starts at 0x60E910. For GTA Vice City v1.0, the array containing this data starts at 0x6D5338. In the table below, the background color of the cell is the color defined for that index. Fourteen cells have two colors — the left side for GTA III and the right side for GTA Vice City.

GTA III

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94


GTA Vice City

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94


GTA San Andreas

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
120 121 122 123 124 125 126


GTA Liberty City Stories

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100


GTA Vice City Stories

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100 101


GTA IV

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136

134, 135, 136 - TBoGT

car

The car section contains pairs of colors assigned to a vehicle model. Vehicles that spawn with a randomized color will choose a random pair of colors for the vehicle model from this section.

car
# III/VC/SA
ModelName, FirstColor1, SecondColor1, FirstColor2, SecondColor2, FirstColor3, SecondColor3, FirstColor4, SecondColor4, FirstColor5, SecondColor5, FirstColor6, SecondColor6, FirstColor7, SecondColor7, FirstColor8, SecondColor8
# IV
ModelName, FirstColor1, SecondColor1, FirstColor2, SecondColor2, FirstColor3, SecondColor3, FirstColor4, SecondColor4, FirstColor5, SecondColor5, FirstColor6, SecondColor6, FirstColor7, SecondColor7, FirstColor8, SecondColor8, FirstColor9, SecondColor9, FirstColor10, SecondColor10, FirstColor11, SecondColor11, FirstColor12, SecondColor12, FirstColor13, SecondColor13, FirstColor14, SecondColor14, FirstColor15, SecondColor15, FirstColor16, SecondColor16, FirstColor17, SecondColor17, FirstColor18, SecondColor18, FirstColor19, SecondColor19, FirstColor20, SecondColor20, FirstColor21, SecondColor21, FirstColor22, SecondColor22, FirstColor23, SecondColor23, FirstColor24, SecondColor24
end
GTA III GTA Vice City GTA San Andreas GTA IV Identifier Type Description
A ModelName string Model name of vehicle.
B FirstColor1 integer First car color of first pair. The value represents the index number in the col section starting with 0.
C SecondColor1 integer Second car color of first pair. The value represents the index number in the col section starting with 0.
D FirstColor2 integer First car color of second pair.
E SecondColor2 integer Second car color of second pair.
Repeat for a total of 8 pairs for GTA III, GTA Vice City, and GTA San Andreas; and 24 pairs for GTA IV.

It is not required to fill all 8 or 24 pairs of colors for each model; the games will ignore unused pairs. It is not even required for a model to have an entry in this section; the games will default to the pair 0,0.

car3

Only used in GTA IV, the car3 section contains the same data as car section from previous games but has a third value, the specular colour.

car3
ModelName, FirstColor1, SecondColor1, SpecularColor1, FirstColor2, SecondColor2, SpecularColor2, FirstColor3, SecondColor3, SpecularColor3, FirstColor4, SecondColor4, SpecularColor4, FirstColor5, SecondColor5, SpecularColor5, FirstColor6, SecondColor6, SpecularColor6, FirstColor7, SecondColor7, SpecularColor7, FirstColor8, SecondColor8, SpecularColor8, FirstColor9, SecondColor9, SpecularColor9, FirstColor10, SecondColor10, SpecularColor10, FirstColor11, SecondColor11, SpecularColor11, FirstColor12, SecondColor12, SpecularColor12, FirstColor13, SecondColor13, SpecularColor13, FirstColor14, SecondColor14, SpecularColor14, FirstColor15, SecondColor15, SpecularColor15, FirstColor16, SecondColor16, SpecularColor16, FirstColor17, SecondColor17, SpecularColor17, FirstColor18, SecondColor18, SpecularColor18, FirstColor19, SecondColor19, SpecularColor19, FirstColor20, SecondColor20, SpecularColor20, FirstColor21, SecondColor21, SpecularColor21, FirstColor22, SecondColor22, SpecularColor22, FirstColor23, SecondColor23, SpecularColor23, FirstColor24, SecondColor24, SpecularColor24
end

car4

Included in GTASA, this section contains the same data as CAR section but has colours in sets of 4 instead of 2. These cars will need to have not only primary and secondary materials assigned within the dff, but also tertiary and quaternary materials. By default, only the Campervan, Cement Mixer and Squalo boat use 4 colours in the game.

In GTA4 the data is the same as in the CAR3 section but with a fourth value, the tertiary colour.

Adding new colours

This is incredibly simple. To begin with, you must come up with an RGB code that matches the colour 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 colour 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 colour.

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 colour(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 colour in it twice, all this will do is match the primary and secondary colours together. Remember, many cars only make use of the primary colour in a pair - the dff model file will need editing if you want the secondary colour to function somewhere on a car. The secondary colour (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.

Adding carcols functionality to your own model (ZModeler only)

This can be achieved simply using tags on the ends of your model's material names. You can force the game to apply the primary colour setting to a material by adding:

[prim]

to the end of the material name, separated by a space. Secondary is [sec], tertiary is [ter] and quaternary is [qua]. A model can have multiple materials using a specific data type.

Tool

Original files

On the following pages are the original Carcols.dat files from each game, and a rendering of each game's default color palette: