Log in to reply
 

how to spawn with license plate



  • Hello I don't have idea how to make this BMW https://www.gta5-mods.com/vehicles/2003-bmw-m5-e39-hitmanniko#comments_tab already sapwn with license plates :( I've changed in vehicles.meta to
    <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
    but it doesn't work



  • @adinhoa
    I believe the plates (& the M5 spoiler) are extras. Use a trainer to select them & they should appear.
    I'm not sure how "<plateType>VPT_FRONT_AND_BACK_PLATES</plateType>" will affect things so if the plates don't work you may have to put that back to how it was originally.



  • @a63nt 5m1th Yes that's true. Plates can be spawned as components, but I wonder how to make them already spawn attached with car



  • @adinhoa
    Ah, I see. In that case I would probably experiment with adding FLAG_EXTRAS_ALL to the '<flags' line in the cars 'vehicles.meta'. You may have to remove the FLAG_EXTRAS_REQUIRE to get it to work (mentioned in link below).
    Also, FLAG_EXTRAS_ALL should make ALL the extras appear when the car spawns which you may not want as this will make the M5 spoiler (& any other extras the car has) appear all of the time as well.
    You'll just have to play around with things to see what you get. I'm pretty sure you could edit 'carcols.meta' & remove unwanted extras though so that might be one option.
    If you want the car to spawn naturally in traffic with number plate but no spoiler but want the spoiler option for your player vehicle you could create two vehicles with slightly different spawn names to solve that & have only the one with number plate in 'popgroups.ymt'.
    'vehicles.meta' also has '<extraIncludes />' & '<requiredExtras />' lines that you may want to research. I haven't messed with extras so I'm not sure of the finer points of exactly how it works & can only point you in that general direction but I'm sure there will be others trying to get cars to spawn with extras (police lightbars etc).
    There is a thread here that discusses it & you should find many more with a focused google search now you know what you are looking for.
    If I think of anything else I'll let you know as well. :thumbsup:



  • @adinhoa
    Here's a few threads that discuss it here & here & a thread here that lists a lot of flags that may give you ideas for experimentation.
    Looks to me like the knowledge of the finer points of how it all works is not that well defined (worked for some, not for others) so as mentioned you'll probably have to play around with things & see what you can come up with.
    I'll mess around with a few things also & see if I can figure anything out :thumbsup:
    Also, are you using the add-on version or the Oracle replace?



  • @adinhoa
    I have tested a few ideas ingame & written a little tutorial that may interest you on how to make specific vehicle EXTRAS spawn all of the time.
    I'm confident it's exactly what you're looking for :slight_smile:. Check it out & see what you think :thumbsup:



  • @a63nt-5m1th Thank you I'll check it out! :)



  • @a63nt-5m1th But I have another question. Do you maybe know if is there any possibility to make tuning part(e.g. Roof) as component? Or make it spawn with a car already?



  • @adinhoa
    I reckon it should be possible to get cars to spawn in traffic with upgrades. The game does it with certain modded vehicles already. I don't know the finer points of how it works (like can you set specific upgrades or is it a little random? etc) but I reckon 'vehiclemodelsets.meta' has a lot to do with it.
    I did a little experiment with 'vehiclemodelsets.meta' last night but I couldn't find any of the cars I edited spawning in traffic so it may be difficult to test the result until I can predict the spawning. I definitely want to know how it works so will be continuing to research & test ideas (although it may be a slow process).
    I'll be sure to let you know if I figure anything out though (I'll probably create a tutorial if I suss it out) :thumbsup:



  • @a63nt-5m1th Nice thanks :) I'll also try to figure it out. It's true that there are cars spawning with tuning but I think it's always full tuning options, you know not few parts (e.g spoiler and dark windows).



  • @adinhoa
    Mustang GT

    Getting there :slight_smile: Also managed to get it to spawn with different wheels & just a carbon roof & louvres too (none of the other modifications).
    This is just editing the cars in the 'LS_CUSTOMS_MODDED_SP' '<Item type="CAmbientModelSet">' section in 'vehiclemodelsets.meta' (most predictable spawn point I could find). I'm not actually sure which one of the Dominators this orange one is (3rd one I suspect. The one with '<ModKit value="1" />' set but I'm not sure :slight_smile: I'll figure that out at a later date)
    My 'LS_CUSTOMS_MODDED_SP' AmbientModelSet section looks like this:

        <Item type="CAmbientModelSet">
          <Name>LS_CUSTOMS_MODDED_SP</Name>
          <Models>
            <Item>
              <Name>DOMINATOR</Name>
              <Variations type="CAmbientVehicleModelVariations">
                <BodyColour1 value="71" />
                <BodyColour2 value="62" />
                <BodyColour3 value="18" />
                <BodyColour4 value="20" />
                <WindowTint value="4" />
                <ColourCombination value="-1" />
                <Livery value="-1" />
                <ModKit value="0" />
                <Mods>
                  <Item>
                    <ModType>VMT_BUMPER_F</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_BUMPER_R</ModType>
                    <ModIndex value="2" />
                  </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="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_WHEELS</ModType>
                    <ModIndex value="12" />
                  </Item>
                  <Item>
                    <ModType>VMT_SUSPENSION</ModType>
                    <ModIndex value="3" />
                  </Item>
                  <Item>
                    <ModType>VMT_BONNET</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_SPOILER</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_SKIRT</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_GRILL</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_CHASSIS</ModType>
                    <ModIndex value="2" />
                  </Item>
                  <Item>
                    <ModType>VMT_ROOF</ModType>
                    <ModIndex value="2" />
                  </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>DOMINATOR</Name>
              <Variations type="CAmbientVehicleModelVariations">
                <BodyColour1 value="41" />
                <BodyColour2 value="62" />
                <BodyColour3 value="18" />
                <BodyColour4 value="20" />
                <WindowTint value="4" />
                <ColourCombination value="-1" />
                <Livery value="-1" />
                <ModKit value="0" />
                <Mods>
                  <Item>
                    <ModType>VMT_BUMPER_F</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_BUMPER_R</ModType>
                    <ModIndex value="0" />
                  </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="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_WHEELS</ModType>
                    <ModIndex value="10" />
                  </Item>
                  <Item>
                    <ModType>VMT_SUSPENSION</ModType>
                    <ModIndex value="3" />
                  </Item>
                  <Item>
                    <ModType>VMT_BONNET</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_SPOILER</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_SKIRT</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_GRILL</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_CHASSIS</ModType>
                    <ModIndex value="0" />
                  </Item>
                  <Item>
                    <ModType>VMT_ROOF</ModType>
                    <ModIndex value="0" />
                  </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>DOMINATOR</Name>
              <Variations type="CAmbientVehicleModelVariations">
                <BodyColour1 value="75" />
                <BodyColour2 value="62" />
                <BodyColour3 value="18" />
                <BodyColour4 value="20" />
                <WindowTint value="4" />
                <ColourCombination value="-1" />
                <Livery value="-1" />
                <ModKit value="1" />
                <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="13" />
                  </Item>
                  <Item>
                    <ModType>VMT_SUSPENSION</ModType>
                    <ModIndex value="3" />
                  </Item>
                  <Item>
                    <ModType>VMT_BONNET</ModType>
                    <ModIndex value="0" />
                  </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>
    

    which gave me the orange one above fully modded, a dark blue one with different alloys & only a carbon roof & louvres & a dark purple-ish one with different alloys again that looked standard with no mods.

    You can see there are also options for extras in there too:

                <Extra1>CantUse</Extra1>
                <Extra2>Either</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>
    

    with the option of 'CantUse' or 'Either' (<that's all I've seen so far & I don't know exactly what they do yet?). Gonna take a while to test everything but I reckon there at least a half decent chance of getting vehicles to spawn (some vehicles at least) with exactly what modifications & extras one wants :thumbsup:



  • @a63nt-5m1th Nice thanks! I think that you should make tutorial of it when you get rid off that, so everyone will know that you are the author if it :)



  • @adinhoa
    Yeah, I'll create a full 'vehiclemodelsets.meta' tutorial once I figure out all the different parts of the file & exactly what they do :thumbsup:


Log in to reply
 

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