Log in to reply
 

How to add one specific dlc vehicle to Story mode traffic ?



  • hi every one i saw a bunch of mod to add dlc cars into story mod traffic, but all of those mods add a lot of dlc cars into traffic, do you know a way to add only dlc cars that i want into stock story mod traffic ?



  • @gti92

    The file you want to edit is 'popgroups.ymt' (the one in 'update.rpf'):

    ...\Grand Theft Auto V\mods\update\update.rpf\x64\levels\gta5\popgroups.ymt

    You edit the vehicle names in the '<vehGroups>' section of the file which looks something like this:

    Example:

      <vehGroups>
        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
            <Item><Name>intruder</Name><Variations type="NULL"/></Item>
            <Item><Name>ingot</Name><Variations type="NULL"/></Item>
            <Item><Name>manana</Name><Variations type="NULL"/></Item>
            <Item><Name>minivan</Name><Variations type="NULL"/></Item>
            <Item><Name>premier</Name><Variations type="NULL"/></Item>
            <Item><Name>primo</Name><Variations type="NULL"/></Item>
            <Item><Name>rancherxl</Name><Variations type="NULL"/></Item>
            <Item><Name>regina</Name><Variations type="NULL"/></Item>
            <Item><Name>sultan</Name><Variations type="NULL"/></Item>
            <Item><Name>stratum</Name><Variations type="NULL"/></Item>
            <Item><Name>youga</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado3</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado</Name><Variations type="NULL"/></Item>
            <Item><Name>warrener</Name><Variations type="NULL"/></Item>
            <Item><Name>glendale</Name><Variations type="NULL"/></Item>
            <Item><Name>rhapsody</Name><Variations type="NULL"/></Item>
            <Item><Name>panto</Name><Variations type="NULL"/></Item>
            <Item><Name>pigalle</Name><Variations type="NULL"/></Item>
          </models>
          <flags>POPGROUP_SCENARIO POPGROUP_AMBIENT</flags>
        </Item>
        <Item>
          <Name>VEH_MID</Name>
          <models>
            <Item><Name>asterope</Name><Variations type="NULL"/></Item>
            <Item><Name>Baller</Name><Variations type="NULL"/></Item>
            <Item><Name>baller2</Name><Variations type="NULL"/></Item>
            <Item><Name>buffalo</Name><Variations type="NULL"/></Item>
            <Item><Name>blista</Name><Variations type="NULL"/></Item>
            <Item><Name>blista2</Name><Variations type="NULL"/></Item>
    ...
    

    Within the '<vehGroups>' section are sub-sections named stuff like 'VEH_POOR', 'VEH_MID', 'VEH_RICH', 'VEH_HAULAGE' etc. Most of those sections have an online multiplayer equivalent ('VEH_POOR_MP', 'VEH_MID_MP', 'VEH_RICH_MP', 'VEH_HAULAGE_MP' etc). You do not need to edit the '_MP' sections, they don't apply to singleplayer & can be ignored &/or even removed.

    You can add new vehicle name lines, or edit existing ones, both are possible & won't cause any issues.



  • @a63nt-5m1th said in How to add one specific dlc vehicle to Story mode traffic ?:

    @gti92

    The file you want to edit is 'popgroups.ymt' (the one in 'update.rpf'):

    ...\Grand Theft Auto V\mods\update\update.rpf\x64\levels\gta5\popgroups.ymt

    You edit the vehicle names in the '<vehGroups>' section of the file which looks something like this:

    Example:

      <vehGroups>
        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
            <Item><Name>intruder</Name><Variations type="NULL"/></Item>
            <Item><Name>ingot</Name><Variations type="NULL"/></Item>
            <Item><Name>manana</Name><Variations type="NULL"/></Item>
            <Item><Name>minivan</Name><Variations type="NULL"/></Item>
            <Item><Name>premier</Name><Variations type="NULL"/></Item>
            <Item><Name>primo</Name><Variations type="NULL"/></Item>
            <Item><Name>rancherxl</Name><Variations type="NULL"/></Item>
            <Item><Name>regina</Name><Variations type="NULL"/></Item>
            <Item><Name>sultan</Name><Variations type="NULL"/></Item>
            <Item><Name>stratum</Name><Variations type="NULL"/></Item>
            <Item><Name>youga</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado3</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado</Name><Variations type="NULL"/></Item>
            <Item><Name>warrener</Name><Variations type="NULL"/></Item>
            <Item><Name>glendale</Name><Variations type="NULL"/></Item>
            <Item><Name>rhapsody</Name><Variations type="NULL"/></Item>
            <Item><Name>panto</Name><Variations type="NULL"/></Item>
            <Item><Name>pigalle</Name><Variations type="NULL"/></Item>
          </models>
          <flags>POPGROUP_SCENARIO POPGROUP_AMBIENT</flags>
        </Item>
        <Item>
          <Name>VEH_MID</Name>
          <models>
            <Item><Name>asterope</Name><Variations type="NULL"/></Item>
            <Item><Name>Baller</Name><Variations type="NULL"/></Item>
            <Item><Name>baller2</Name><Variations type="NULL"/></Item>
            <Item><Name>buffalo</Name><Variations type="NULL"/></Item>
            <Item><Name>blista</Name><Variations type="NULL"/></Item>
            <Item><Name>blista2</Name><Variations type="NULL"/></Item>
    ...
    

    Within the '<vehGroups>' section are sub-sections named stuff like 'VEH_POOR', 'VEH_MID', 'VEH_RICH', 'VEH_HAULAGE' etc. Most of those sections have an online multiplayer equivalent ('VEH_POOR_MP', 'VEH_MID_MP', 'VEH_RICH_MP', 'VEH_HAULAGE_MP' etc). You do not need to edit the '_MP' sections, they don't apply to singleplayer & can be ignored &/or even removed.

    You can add new vehicle name lines, or edit existing ones, both are possible & won't cause any issues.

    ok thanks man, so for example if i want to add the "manchez" in Story mode i just need to add this line under VEH_POOR, VEH_MID ,VEH_RICH and VEH_HAULAGE sections:
    <Item><Name>manchez</Name><Variations type="NULL"/></Item>



  • @gti92
    Yeah, that's it, say you added it to the 'VEH_POOR' section, it would look somewhat like this:

      <vehGroups>
        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
            <Item><Name>intruder</Name><Variations type="NULL"/></Item>
            <Item><Name>ingot</Name><Variations type="NULL"/></Item>
            <Item><Name>manana</Name><Variations type="NULL"/></Item>
            <Item><Name>minivan</Name><Variations type="NULL"/></Item>
            <Item><Name>premier</Name><Variations type="NULL"/></Item>
            <Item><Name>primo</Name><Variations type="NULL"/></Item>
            <Item><Name>rancherxl</Name><Variations type="NULL"/></Item>
            <Item><Name>regina</Name><Variations type="NULL"/></Item>
            <Item><Name>sultan</Name><Variations type="NULL"/></Item>
            <Item><Name>stratum</Name><Variations type="NULL"/></Item>
            <Item><Name>youga</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado3</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado</Name><Variations type="NULL"/></Item>
            <Item><Name>warrener</Name><Variations type="NULL"/></Item>
            <Item><Name>glendale</Name><Variations type="NULL"/></Item>
            <Item><Name>rhapsody</Name><Variations type="NULL"/></Item>
            <Item><Name>panto</Name><Variations type="NULL"/></Item>
            <Item><Name>pigalle</Name><Variations type="NULL"/></Item>
            <Item><Name>manchez</Name><Variations type="NULL"/></Item> <!-- manchez added -->
          </models>
          <flags>POPGROUP_SCENARIO POPGROUP_AMBIENT</flags>
        </Item>
        <Item>
          <Name>VEH_MID</Name>
          <models>
            <Item><Name>asterope</Name><Variations type="NULL"/></Item>
            <Item><Name>Baller</Name><Variations type="NULL"/></Item>
            <Item><Name>baller2</Name><Variations type="NULL"/></Item>
            <Item><Name>buffalo</Name><Variations type="NULL"/></Item>
            <Item><Name>blista</Name><Variations type="NULL"/></Item>
            <Item><Name>blista2</Name><Variations type="NULL"/></Item>
    ...
    

    Any new vehicles can be added anywhere within the '<models>' sections within '<vehGroups>', they don't have to be at the bottom of that section, put them wherever you want etc. All that matters is that the formatting/syntax is correct.

    Just so you know, the vanilla 'popgroups.ymt' has the vehicles list set out like this visually:

        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item>
              <Name>asea</Name>
              <Variations type="NULL"/>
            </Item>
            <Item>
              <Name>buccaneer</Name>
              <Variations type="NULL"/>
            </Item>
            <Item>
              <Name>emperor2</Name>
              <Variations type="NULL"/>
            </Item>
    ...
    

    but that's identical to this (below) as far as formatting/syntax is concerned:

        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
    ...
    

    Either will work. The second one essentially just has the whitespace removed & makes the file easier to read & move through with less scrolling involved etc, but they both do exactly the same thing, the difference is purely visual. :thumbsup:

    Checking Files for Syntax Errors:
    If you want to check your formatting/syntax at any point, you can syntax check most files in OpenIV by right-clicking the file > 'Edit' > & then hit the '[</> XML]' button that appears at the top of the file (top middle, just right of 'Paste' etc). It will then check the file & either warn you of any syntax errors, or tell you everything is fine/no errors detected etc.



  • @a63nt-5m1th said in How to add one specific dlc vehicle to Story mode traffic ?:

    @gti92
    Yeah, that's it, say you added it to the 'VEH_POOR' section, it would look somewhat like this:

      <vehGroups>
        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
            <Item><Name>intruder</Name><Variations type="NULL"/></Item>
            <Item><Name>ingot</Name><Variations type="NULL"/></Item>
            <Item><Name>manana</Name><Variations type="NULL"/></Item>
            <Item><Name>minivan</Name><Variations type="NULL"/></Item>
            <Item><Name>premier</Name><Variations type="NULL"/></Item>
            <Item><Name>primo</Name><Variations type="NULL"/></Item>
            <Item><Name>rancherxl</Name><Variations type="NULL"/></Item>
            <Item><Name>regina</Name><Variations type="NULL"/></Item>
            <Item><Name>sultan</Name><Variations type="NULL"/></Item>
            <Item><Name>stratum</Name><Variations type="NULL"/></Item>
            <Item><Name>youga</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado3</Name><Variations type="NULL"/></Item>
            <Item><Name>tornado</Name><Variations type="NULL"/></Item>
            <Item><Name>warrener</Name><Variations type="NULL"/></Item>
            <Item><Name>glendale</Name><Variations type="NULL"/></Item>
            <Item><Name>rhapsody</Name><Variations type="NULL"/></Item>
            <Item><Name>panto</Name><Variations type="NULL"/></Item>
            <Item><Name>pigalle</Name><Variations type="NULL"/></Item>
            <Item><Name>manchez</Name><Variations type="NULL"/></Item> <!-- manchez added -->
          </models>
          <flags>POPGROUP_SCENARIO POPGROUP_AMBIENT</flags>
        </Item>
        <Item>
          <Name>VEH_MID</Name>
          <models>
            <Item><Name>asterope</Name><Variations type="NULL"/></Item>
            <Item><Name>Baller</Name><Variations type="NULL"/></Item>
            <Item><Name>baller2</Name><Variations type="NULL"/></Item>
            <Item><Name>buffalo</Name><Variations type="NULL"/></Item>
            <Item><Name>blista</Name><Variations type="NULL"/></Item>
            <Item><Name>blista2</Name><Variations type="NULL"/></Item>
    ...
    

    Any new vehicles can be added anywhere within the '<models>' sections within '<vehGroups>', they don't have to be at the bottom of that section, put them wherever you want etc. All that matters is that the formatting/syntax is correct.

    Just so you know, the vanilla 'popgroups.ymt' has the vehicles list set out like this visually:

        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item>
              <Name>asea</Name>
              <Variations type="NULL"/>
            </Item>
            <Item>
              <Name>buccaneer</Name>
              <Variations type="NULL"/>
            </Item>
            <Item>
              <Name>emperor2</Name>
              <Variations type="NULL"/>
            </Item>
    ...
    

    but that's identical to this (below) as far as formatting/syntax is concerned:

        <Item>
          <Name>VEH_POOR</Name>
          <models>
            <Item><Name>asea</Name><Variations type="NULL"/></Item>
            <Item><Name>buccaneer</Name><Variations type="NULL"/></Item>
            <Item><Name>emperor2</Name><Variations type="NULL"/></Item>
    ...
    

    Either will work. The second one essentially just has the whitespace removed & makes the file easier to read & move through with less scrolling involved etc, but they both do exactly the same thing, the difference is purely visual. :thumbsup:

    Checking Files for Syntax Errors:
    If you want to check your formatting/syntax at any point, you can syntax check most files in OpenIV by right-clicking the file > 'Edit' > & then hit the '[</> XML]' button that appears at the top of the file (top middle, just right of 'Paste' etc). It will then check the file & either warn you of any syntax errors, or tell you everything is fine/no errors detected etc.

    thanks man it worked :thumbsup_tone1:


Log in to reply
 

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