Log in to reply
 

How to add multiple color sets to car spawn???



  • Trying to add more spawn color sets to cars in carvariations

    <Item>
          <indices content="char_array">
            75 
            75
            70
            156 
          </indices>
          <liveries> 
    

    How to add more color sets???





  • "Each set of colours you add, is an alternative it can spawn in on every subsequent spawn. So if you only want one colour, just have a single set of values"

    My question is where do I enter second Color set, after which line?

    <Item>
    <indices content="char_array">
    75
    75
    70
    156
    </indices>
    <liveries>



  • @Biggdogg Well considering what you have there is an incomplete section, nowhere in there.

    Sections in GTAV are generally marked with <Item> <Item/> tags, that defines a segment. So if you look again at that post I linked to, you can see the outer <colors><colors/> tags and the inner <Item> <Item/> tags. You would add a new section marked by the <Item> <Item/> tags, after the bottom <Item/> entry.

    So basically:

    <colors>
    	<Item>
    		<!-- First set of colours -->
    	<Item/>
    
    	<Item> 
    		<!-- Second set of colours -->
    	<Item/>
    
    	<Item> 
    		<!-- Third set of colours -->
    	<Item/>
    <colors/>


  • Can you please give an example for the second set having a difficult time with this? Game keeps crashing at load screen so I know I'm not doing it correct
    <colors>
    <Item>
    <indices content="char_array">
    89
    89
    89
    156
    </indices>
    <liveries>
    <Item value="true" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    <Item value="false" />
    </liveries>
    </Item>
    </colors>



  • @Biggdogg because you did it wrong it should look like this.

    <Item>
    <modelName>car model name here</modelName>
    <colors>
    <Item>
    <indices content="char_array">
    89
    89
    89
    156
    </indices>
    <liveries>
    <Item value="true" />
    <Item value="false" />
    </liveries>
    </Item>
    <Item>
    <indices content="char_array">
    8
    8
    0
    0
    </indices>
    <liveries>
    <Item value="true" />
    <Item value="false" />
    </liveries>
    </Item>
    </colors>
    <kits>
    <Item>0_default_modkit</Item>
    </kits>
    <windowsWithExposedEdges />
    <plateProbabilities>
    <Probabilities />
    </plateProbabilities>
    <lightSettings value="1" />
    <sirenSettings value="0" />
    </Item>

    that is how it would look for doing 2 sets of different colors thats the full set of code to do 1 car



  • @Willief23 got it thank you;)



  • @Willief23 is there a max numbers of color sets per car



  • @Biggdogg you can do as many as you like i have done up to 9 or 10 different color variations for one car.



  • @Willief23 thanks


Log in to reply
 

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