Difference between revisions of "Carvariations.ymt"
WildBrick142 (talk | contribs) (→Name: updated plate info) |
Michael21107 (talk | contribs) m (Minor grammar fixes and improvements) |
||
| Line 1: | Line 1: | ||
| − | {{Metafile|name = carvariations.meta / carvariations.#mt|struct = CVehicleModelInfoVariation|filetype = VEHICLE_VARIATION_FILE}}{{lowercase}}''' | + | {{Metafile|name = carvariations.meta / carvariations.#mt|struct = CVehicleModelInfoVariation|filetype = VEHICLE_VARIATION_FILE}}{{lowercase}}'''Carvariations''' is used for assigning colors, kits, lights, etc to vehicles in [[GTA V]]. For modifying these settings, see [[carcols.ymt]]. This file is the successor to [[carcols.dat]] in previous games. |
=variationData= | =variationData= | ||
{{Metafilestruct|struct = CVehicleVariationData}}<br><br> | {{Metafilestruct|struct = CVehicleVariationData}}<br><br> | ||
| Line 6: | Line 6: | ||
==colors== | ==colors== | ||
{{Metafilestruct|struct = CVehicleModelColorIndices}}<br><br> | {{Metafilestruct|struct = CVehicleModelColorIndices}}<br><br> | ||
| − | There can be only 25 color variations per vehicle. Exceeding that amount will cause color | + | There can be only 25 color variations per vehicle. Exceeding that amount will cause color IDs to overlap each other. |
===indices=== | ===indices=== | ||
| − | Colors IDs, called from [[carcols.ymt]]. Those | + | Colors IDs, called from [[carcols.ymt]]. Those IDs are listed in an array with up to 6 IDs. |
*'''First ID:''' Primary Color | *'''First ID:''' Primary Color | ||
*'''Second ID:''' Secondary Color | *'''Second ID:''' Secondary Color | ||
| Line 15: | Line 15: | ||
*'''Fifth ID:''' Extra1 Color (typically used for interiors) | *'''Fifth ID:''' Extra1 Color (typically used for interiors) | ||
*'''Sixth ID:''' Extra2 Color (typically used for dials) | *'''Sixth ID:''' Extra2 Color (typically used for dials) | ||
| − | Some recent DLC vehicles feature a seventh color ID, | + | Some recent DLC vehicles feature a seventh color ID; however, it doesn't do anything and is ignored by the game. |
===liveries=== | ===liveries=== | ||
Sets whether or not to use a livery texture in the vehicle's .ytd. This will not toggle on modkit liveries or livery2's. | Sets whether or not to use a livery texture in the vehicle's .ytd. This will not toggle on modkit liveries or livery2's. | ||
| Line 110: | Line 110: | ||
===Value=== | ===Value=== | ||
| − | + | The percentage that it will be that color. Values should add up to 100. | |
==lightSettings== | ==lightSettings== | ||
Lighting assignment ID for the vehicle, called from [[carcols.ymt]]. | Lighting assignment ID for the vehicle, called from [[carcols.ymt]]. | ||
Latest revision as of 14:25, 20 November 2025
| Struct: | CVehicleModelInfoVariation |
|---|---|
| File Type: | VEHICLE_VARIATION_FILE |
Carvariations is used for assigning colors, kits, lights, etc to vehicles in GTA V. For modifying these settings, see carcols.ymt. This file is the successor to carcols.dat in previous games.
Contents
variationData
| Struct: | CVehicleVariationData |
|---|
modelName
Vehicle model name.
colors
| Struct: | CVehicleModelColorIndices |
|---|
There can be only 25 color variations per vehicle. Exceeding that amount will cause color IDs to overlap each other.
indices
Colors IDs, called from carcols.ymt. Those IDs are listed in an array with up to 6 IDs.
- First ID: Primary Color
- Second ID: Secondary Color
- Third ID: Pearlescent Color
- Fourth ID: Wheel Color
- Fifth ID: Extra1 Color (typically used for interiors)
- Sixth ID: Extra2 Color (typically used for dials)
Some recent DLC vehicles feature a seventh color ID; however, it doesn't do anything and is ignored by the game.
liveries
Sets whether or not to use a livery texture in the vehicle's .ytd. This will not toggle on modkit liveries or livery2's.
- Value: true or false.
The Items position under liveries is the texture's number. Example: If you wanted to set the Marshall to use livery #8 (flag_sign_8 in marshall.ytd), you would set the eighth Item to true.
kits
kitName in carcols.ymt that the vehicle uses.
windowsWithExposedEdges
- window_lf
- window_rf
plateProbabilities
| Struct: | PlateProbabilities |
|---|
Chances for what color license plate the vehicle will have.
Name
Name of the license plate.
If one creates custom license plates, any name defined in TextureSetName in carcols.ymt can be used here.
Value
The percentage that it will be that color. Values should add up to 100.
lightSettings
Lighting assignment ID for the vehicle, called from carcols.ymt.
sirenSettings
Siren assignment ID for the vehicle, called from carcols.ymt.
| File Formats | .awc • .dat • .gfx • .gxt2 • .ide • .meta/.ymt/.xml • .mrf • .patch • .rpf • .ybn/.ybd • .ycd • .ydd • .ydr • .yed • .yfd • .yft • .yld • .ymap • .ymf • .ynd • .ynv • .ypdb • .ysc • .ytd • .ytyp • .yvr |
| Documentation | Bink Video • Native functions • Weather types |
| Tools | OpenIV • GIMS Evo • CodeWalker |
| Multiplayer | |
| Useful links | Community portal • Discussion forums • GTA V Modding Forum • GTA5-Mods • Native Functions Database (alloc8or) |