Log in to reply
 

How to edit car spawn color?



  • Does anyone know how to change a car color at spawn. Im not talking about through LSC when its FIRST spawned it will be set to a certain color how do i change this?



  • its in the carvariations.meta file.
    this item decides the color when spawn:
    <Item>
    <indices content="char_array">
    0 \primary
    0 \secondary
    6 \pearl
    156 \rims, 156 is default alloy color
    </indices>
    <liveries>
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    </liveries>
    </Item>



  • You will need this to find the color number you want: https://www.gta5-mods.com/tools/lsc-vehicle-colours-index



  • @c0der7 I noticed after the Import/Export update that there are sometimes more than four color slots:
    <Item>
    <modelName>nero</modelName>
    <colors>
    <Item>
    <indices content="char_array">
    70
    64
    18
    112
    63
    65
    </indices>
    Any idea what these extra two are for? Other than the Nero, the ItaliGTB (but not ItaliGTB2), Specter(2), and Technical2 all have six slots; while the Voltic2 has five.



  • @kaddigart yes there are.. but those are special purpose ones...
    settings those on other cars may cause a crash
    0 \primary
    0 \secondary
    6 \pearl
    0 /Rims
    1 /Interior
    27 /outer rims



  • also note the first color set it spawns with is actually the second color entry set in the carvariations file :P
    unless there is only one color combo in the carvariations



  • @c0der7 Ok, thanks. One last question if I may:
    With most of the vanilla cars they have a number of livery strings equal to the different color options, even if the car doesn't have any liveries. However, I've seen mods that have, say, one color option and five livery strings, but another with fifteen color options and eight livery strings. My question is, are they (the livery strings) even necessary for a car without any liveries? Could the tag not just be left empty (like the <extraIncludes /> and <trailers /> often are in the vehicles.meta file) or even omitted completely?



  • no, if the car doesnt have any livery like most of the modded cars in this site. You dont have to put the liveries.
    I tried to completey delete the tag and there is no harm doing it. and it save a space to work easily in the xml.



  • ^ carvariations.meta



  • I have just been watching a YT video on this and I am a little confused as the information here and there seems slightly at odds with each other.

    In the YT video, it said that a value of 156 sets the slot option to a random colour, but in the above post:

    0 \primary
    0 \secondary
    6 \pearl
    156 \rims, 156 is default alloy color

    It says 156 is the default alloy colour.

    Could someone clarify what the value of 156 actually does and whether it changes function in different slots please?


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.