Log in to reply
 

Force Tuning Parts at every single spawn of a given car



  • The title say itself what i try to do, i know it has to do with carvariations but the only stuff i have been able to force are extras, this time i need to force a certain tuning part to be installed on every single spawn of the car it belongs to.

    If you know how to do this, please reply to this post. Thanks



  • yeah been discussing this as well, don't think its something in carvariations tho :/



  • Had already discussed this with ReNNie too, it a pain in the ass........hope this works on some way



  • dammit :/



  • @Vans123 you can maybe try some stuff into the vehiclemodelsets.meta file

    you can turn off some tuning parts there and set one particular tuning id to be attached to the spawning vehicle, (it works for the already tuned spawning vehicles) see t0bi's "anti-crash hotfix for replace cars" mod. (if i correctly understood your question)

    for exemple -1 to turn it off, and 1-10(or more) to make it spawn with that particular tuning id
    (you maybe already knew for that thing, thought it could be related to that)
    <Item>
    <Name>SABREGT</Name>
    <Variations type="CAmbientVehicleModelVariations">
    <BodyColour1 value="60" />
    <BodyColour2 value="82" />
    <BodyColour3 value="0" />
    <BodyColour4 value="156" />
    <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="-1" />
    </Item>
    <Item>
    <ModType>VMT_WING_R</ModType>
    <ModIndex value="-1" />
    </Item>
    <Item>
    <ModType>VMT_EXHAUST</ModType>
    <ModIndex value="-1" />
    </Item>
    <Item>
    <ModType>VMT_WHEELS</ModType>
    <ModIndex value="16" />
    </Item>
    <Item>
    <ModType>VMT_SUSPENSION</ModType>
    <ModIndex value="2" />
    </Item>
    <Item>
    <ModType>VMT_BONNET</ModType>
    <ModIndex value="3" />
    </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>
    <Item type="CAmbientModelSet">
    <Name>MUSCLE_CARS_MODDED_2</Name>
    <Models>
    <Item>



  • don't think it can be done without a script



  • edit: no it can't



  • ... then we might as well tag a scriptdeity @LeeC2202



  • @ReNNie with a script its real easy. All you need to do is find all the vehicles around the player, check if its the car we want, if it is, apply the tuning part. I think I should actually make that with a INI thingy!



  • If I remember well, tuning parts only work if the vehicle has a modkit installed. I don't know how it works regarding file editing, but via script it's a simple native.

    I have a function that randomly tunes cars, if you want to do it by script I can share it (when I get home). But no idea how to do it via file modding.

    There are some pre-tuned cars that spawn ingame, if you could find the file that defines them, it would be useful.



  • @eddlm, in that case, any ideas on this? modkit stuff



  • @Eddlm yes like ones that spawn next to Los Santos customs in city



  • @Eddlm see my comment above, it's that exact file that defines the pre-installed tuning, open the custom vehiclemodelsets.meta provided by t0bi https://www.gta5-mods.com/misc/anti-crash-hotfix-for-replace-cars to understand how he enables/disables them (compare massacro, sentinel and other already-tuned appearing vehicles)



  • I want the npc driven cop cars to be tuned, found it in vehiclemodelsets.meta, but parked units are not tuned, which file affects the parked vehicles?????

    PS: I couldn't find a way to enable/disable turbo in cars in vehiclemodelsets.meta, what line should i add to it?


Log in to reply
 

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