Tuning part as component
-
Hello people!
Is there any possibility to make tuning part (ex. spoiler) as component? So when AI spawn with this car there is posibility to spawn with this spoiler.
Any idea?
-
Nobody knows?
So maybe how to make AI spawn with tunings (eg. spoiler or roof)??
-
@adinhoa
I think what you are looking for is 'vehiclemodelsets.meta'.\mods\update\update.rpf\common\data\ai\vehiclemodelsets.meta
Search inside the file for 'modded' (there are lots) & you'll see something like this:
<Item type="CAmbientModelSet"> <Name>DUBSTA2_MODDED</Name> <Models> <Item> <Name>Dubsta2</Name> <Variations type="CAmbientVehicleModelVariations"> <BodyColour1 value="120" /> <BodyColour2 value="120" /> <BodyColour3 value="120" /> <BodyColour4 value="120" /> <WindowTint value="-1" /> <ColourCombination value="-1" /> <Livery value="-1" /> <ModKit value="0" /> <Mods> <Item> <ModType>VMT_BUMPER_F</ModType> <ModIndex value="1" /> </Item> <Item> <ModType>VMT_BUMPER_R</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_WING_L</ModType> <ModIndex value="0" /> </Item> <Item> <ModType>VMT_WING_R</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_EXHAUST</ModType> <ModIndex value="0" /> </Item> <Item> <ModType>VMT_WHEELS</ModType> <ModIndex value="7" /> </Item> <Item> <ModType>VMT_SUSPENSION</ModType> <ModIndex value="3" /> </Item> <Item> <ModType>VMT_BONNET</ModType> <ModIndex value="1" /> </Item> <Item> <ModType>VMT_SPOILER</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_SKIRT</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_GRILL</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_CHASSIS</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_ROOF</ModType> <ModIndex value="1" /> </Item> </Mods> <Extra1>CantUse</Extra1> <Extra2>CantUse</Extra2> <Extra3>CantUse</Extra3> <Extra4>CantUse</Extra4> <Extra5>CantUse</Extra5> <Extra6>CantUse</Extra6> <Extra7>CantUse</Extra7> <Extra8>CantUse</Extra8> <Extra9>CantUse</Extra9> <Extra10>CantUse</Extra10> </Variations> <Probability value="1.000000" /> </Item> <Item> <Name>Dubsta2</Name> <Variations type="CAmbientVehicleModelVariations"> <BodyColour1 value="158" /> <BodyColour2 value="89" /> <BodyColour3 value="89" /> <BodyColour4 value="158" /> <WindowTint value="-1" /> <ColourCombination value="-1" /> <Livery value="-1" /> <ModKit value="0" /> <Mods> <Item> <ModType>VMT_BUMPER_F</ModType> <ModIndex value="1" /> </Item> <Item> <ModType>VMT_BUMPER_R</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_WING_L</ModType> <ModIndex value="0" /> </Item> <Item> <ModType>VMT_WING_R</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_EXHAUST</ModType> <ModIndex value="0" /> </Item> <Item> <ModType>VMT_WHEELS</ModType> <ModIndex value="7" /> </Item> <Item> <ModType>VMT_SUSPENSION</ModType> <ModIndex value="3" /> </Item> <Item> <ModType>VMT_BONNET</ModType> <ModIndex value="1" /> </Item> <Item> <ModType>VMT_SPOILER</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_SKIRT</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_GRILL</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_CHASSIS</ModType> <ModIndex value="-1" /> </Item> <Item> <ModType>VMT_ROOF</ModType> <ModIndex value="1" /> </Item> </Mods> <Extra1>CantUse</Extra1> <Extra2>CantUse</Extra2> <Extra3>CantUse</Extra3> <Extra4>CantUse</Extra4> <Extra5>CantUse</Extra5> <Extra6>CantUse</Extra6> <Extra7>CantUse</Extra7> <Extra8>CantUse</Extra8> <Extra9>CantUse</Extra9> <Extra10>CantUse</Extra10> </Variations> <Probability value="1.000000" /> </Item> </Models> </Item>
I haven't experimented with this myself so I don't know the finer points of exactly how it works but it should be pretty easy to play with & find out. Always make a backup.
Also be aware:
@PNWParksFan said in VehicleModelSets being weird:There is a limit of 256 entries in vehiclemodelsets.meta. It sounds like you're over that limit, which will cause it to pick the wrong entry sometimes.
-
@a63nt 5m1th
Okay thanks for idea, that's something. I'll try it out.