Log in to reply
 

Vehicle spawn color



  • Hi! I write this because yesterday I mapped a vehicle but when I spawn the default color is black and the template looks very dark, but when I change the color to white with the trainer v it looks well. The texture is from NYPD show the main color is white. Do you know how to solve this? Thank you.

    Pd: I'm replacing the vehicle with the fbi2 model



  • @mmods
    Vehicle spawn colours are controlled in 'carvariations.ymt/.meta' files.
    The 'carvariations.ymt' for 'fbi2' is stored here:

    ...\mods\update\update.rpf\x64\data\carvariations.ymt

    Open 'carvariations.ymt' & search for "fbi2" & you will find it's settings. They look like this:

        <Item>
          <modelName>FBI2</modelName>
          <colors>
            <Item>
              <indices>
                <Item value="0" />   
                <Item value="0" />  
                <Item value="3" />    
                <Item value="156" />  
              </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" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <Item value="false" />
                <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>
          </colors>
          <kits>
            <Item>0_default_modkit</Item>
          </kits>
          <windowsWithExposedEdges />
          <plateProbabilities>
            <Probabilities>
              <Item>
                <Name>police guv plate</Name>
                <Value value="100" />
              </Item>
            </Probabilities>
          </plateProbabilities>
          <lightSettings value="23" />
          <sirenSettings value="1" />
        </Item>
    

    The spawn colours are controlled in this section:

        <Item>
          <modelName>FBI2</modelName>
          <colors>
            <Item>
              <indices>
                <Item value="0" />    - **First value is Paint 01 Colour Index**
                <Item value="0" />    - **Second value is Paint 02 Colour Index**
                <Item value="3" />    - **Third value is Pearlescent Colour Index**
                <Item value="156" />  - **Fourth value is Alloy Wheel Colour Index**
              </indices>
    

    There are ~160 different 'Colour Index' values (0>160) that each correlate to a different colour.

    Example:

    Metallic Ice White = '111'
    Matt Ice White = '131'

    You can find the 'Colour Index' values in this LSC Vehicle Colours Index Chart.

    Example (Paint 01 & 02 = Metallic Ice White):

        <Item>
          <modelName>FBI2</modelName>
          <colors>
            <Item>
              <indices>
                <Item value="111" /> 
                <Item value="111" />   
                <Item value="3" /> 
                <Item value="156" /> 
              </indices>
    

    Hope that helps :thumbsup:


  • MODERATOR

    @mmods make sure that the texture on the Detail section of the UV map is included in the YTD file (carname_sign_1.dds)



  • @a63nt-5m1th thanks i will try with this. I was looking for the carvariationa file but I dind't found it. Thank you!!



  • @mmods
    Sound :thumbsup: Let us know how you get on.

    Tip:
    In OpenIV 'Ctrl+F3' can be used to search for files by name/extension. Very useful.


Log in to reply
 

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