Jump to content

Modded cars only spawn in one color?


Recommended Posts

I've been adding a few cars here and there, really only found 2 of them so far, the banshee replaced with an RX7 (a tiny bit annoying that it's headlamps don't work at night) and a 1970 Dodge Challenger with a 440 6pack.

 

Like the thread title says, of the few times I've come across the cars I've added into the game, they're the same color, a kinda dark silvery gray. I could have sworn when I downloaded these that in the pics it had them in multiple colors. Just a big coincidence or is something else at work here? Or maybe, I haven't tried this, if I want one in a different color, I actually have to take it to the mod shop and have it painted a different color?

 

Any input would most be appreciated.

Link to comment
https://gtaforums.com/topic/839600-modded-cars-only-spawn-in-one-color/
Share on other sites

The only way that I know off how you can make a vehicle spawn with more than one color is by editing the line that can be found in the carvariations.ymt file for the vehicle, however this would mean that we could open .ymt files, which we're not able to at this moment. I think that the carvariations.ymt file for the default ingame cars (non-DLC) is located in "\x64a.rpf\data\carvariations.ymt", but as I mentioned we can't open them just yet. However, I would imagine that the file was also used on the Xbox 360 version of the game, which had .meta files instead of .ymt files that we can edit with no issues, so it might be possible for you to find the carvariations.meta file for the 360 version here (not a direct download link, it leads onto a website that has all of the files listed on it) and then just edit the line in that and replace the .ymt file in 'x64a' with that or add the added line (so the Banshee line, for example) into the 'mpluxe2' carvariations.meta file, as I've seen a few added cars do that.

But, I'm not sure if these work, I'm just guessing what could work so it really is up to you to either experiment and see if they work, or just wait for the OpenIV team to include .ymt editing in a future update :)

 

In case you do end up trying it yourself, you can add multiple colors by editing the line like this: (I'll be using the Nightshade for the example)

 

 

In the file, find your vehicle line (Ctrl + F -> <modelName>banshee) and look for the section that says <colors> on it:

 

<Item>
<modelName>nightshade</modelName>
<colors>
<Item>
<indices content="char_array">
75
75
70
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" />
</liveries>
</Item>
</colors>
<kits>
<Item>122_nightshade_modkit</Item>
</kits>
<windowsWithExposedEdges />
<plateProbabilities>
<Probabilities>
<Item>
<Name>Standard White</Name>
<Value value="100" />
</Item>
</Probabilities>
</plateProbabilities>
<lightSettings value="43" />
<sirenSettings value="0" />
</Item>

 

After that copy everything from the first <item> to the last <item> line:

 

<Item>
<indices content="char_array">
75
75
70
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" />
</liveries>
</Item>

 

Now, add the line you copied, under the last <item> line:

 

<Item>
<indices content="char_array">
75
75
70
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" />
</liveries>
</Item>
<Item>
<indices content="char_array">
75
75
70
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" />
</liveries>
</Item>

 

Edit the numbers that are painted red with your desired colors (you can find the V vehicle color index here, you can paste multiple of these lines if you wish to have more colors than just 2:

 

<Item>
<indices content="char_array">
75
75
70
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" />
</liveries>
</Item>

 

Atleast as far as I know, there is no way of making the colors random, atleast from what I've noticed. I've been trying to figure out if there is a number that would allow the vehicles to spawn in random colors, but I haven't found one..

 

 

Edited by Carrythxd

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.