Log in to reply
 

Changing What Vehicles Spawn Where


  • MODERATOR

    So recently I edited my game to make it so Los Angeles County firetrucks and an AMR ambulance spawns up north in Sandy Shores and Blaine County instead of my Los angeles ones by making new addon ambulance/firetrucks and editing dispatch.meta (thanks @Aysarous-Gaming). However, i=I notived the default fire truck and ambulance still spawn at the fire station and police station in Blaine County and was wondering, what file do I edit to change that?

    Thanks


  • MODERATOR

    @Aysarous-Gaming maybe


  • MODERATOR

    @Reacon Sadly, I know very little about how traffic works (other than some generic stuff about cargens). Fire trucks may still get spawn via cargens, btw, but you'd have to peruse the ymaps for that.


  • MODERATOR

    @Dekurwinator how would i go about doing it "manually"? codewalker doesn't seem to work for me, it just crashes


  • MODERATOR

    @Dekurwinator i can't find the ymap's for blaine county, it only says country_03,_04 etc


  • MODERATOR

    @Dekurwinator screenshot of where they are in game?


  • MODERATOR

    @Dekurwinator I just realised i've been saying blaine county this entire time, when i meant to say paleto bay but here:

    Ambulance spawns in the end parking spot at the police station:
    alt text

    Fire trucks at paleto bay fire station:
    alt text



  • This one is going to be short and sweet.

    In your case I believe that what you need to do is

    1. Find "vehiclemodelsets.meta"

    2. Find :
      <Item>
      <Name>FIRETRUCK</Name>
      <Models>
      <Item>
      <Name>firetruk</Name>
      <Variations type="NULL" />
      <Probability value="1.000000" />
      </Item>

    And

      <Item>
      <Name>AMBULANCE</Name>
      <Models>
      <Item>
      <Name>ambulance</Name>
      <Variations type="NULL" />
      <Probability value="1.000000" />
      </Item>
      </Models>
      </Item>
      
      inside "vehiclemodelsets.meta.
    
    1. Change <Name>firetruk</Name> to the
      name of your custom model.

    2. Change <Name>ambulance</Name> to the
      name of your custom model.

    That should take care of the stationary spawns, which are not ymap cargens.


  • MODERATOR

    @grateful_for_mods @Dekurwinator will take a look at both your answers, thanks and i will let you guys know!


  • MODERATOR

    @grateful_for_mods wait quick question, won't that change them at all firestations and hospitals etc


  • MODERATOR

    @Dekurwinator what would i edit in here? can't see any "firetruk" or anything


  • MODERATOR

    @Dekurwinator what should i use to edit the ymap?


  • MODERATOR

    @Dekurwinator didn't see the export as plain text my bad


  • MODERATOR

    @Dekurwinator just crashed my game but anyway, what would that have to do with trying to spawn a different vehicle model e.g i want to change firetruk to firetruk2


  • MODERATOR

    @Dekurwinator how do i importy it back into ymap form? just says compressed and crashes my game when i go up there


  • MODERATOR

    @Dekurwinator ohhh thanks!


  • MODERATOR

    @Dekurwinator I tried it myself and my game had a seizure like it sometimes does, thanks for letting me know it works though! Any ideas for where the ambulance is located in ymap? The one that spawns at the police station


  • MODERATOR

    @Dekurwinator thanks for your help man! Appreciate it!



  • Sorry. I initially read your question the wrong way.

    After a quick glance in Codewalker, I can see that there are only one cargenerator next to the fire station in Paleto, that is big enough to contain a "Firetruk".

    It's position is : -447.8863, 5994.355, 31.17419

    You say that you also saw a vanilla "Firetruk" parked next to the Paleto police station, however it looks like the biggest cargenerator there, is still too small to contain a "Firetruk".

    Still, it's position is : -447.8863, 5994.355, 31.17419

    Both do not have a preset model, and you can easily change the cargenerator (CarModel) to the name of your custom vehicle.

    Also, there are no "Firetruk" scenario spawn points, in neither Sandy Shores or Paleto.

    So all in all, changing the name of the model using Codewalker or the openIV/.YMAP method Derkurwinator described, should be sufficient to acheive what you request.

    Happy modding :O)


  • MODERATOR

    @grateful_for_mods thanks man, i meant ambulance at the police station lol!


  • MODERATOR

    @Dekurwinator i changed it to be ambulance2 but haven't seen it at the station, will keep my eye out


  • MODERATOR

    @Dekurwinator there we go!thanks for the help man, i really do appreciate it


  • MODERATOR

    @Reacon said in Changing What Vehicles Spawn Where:

    @Dekurwinator how do i importy it back into ymap form? just says compressed and crashes my game when i go up there

    For future reference, if you want to keep a text-editor version of the ymap open, rename it (outside OpenIV) to, say, 'test.ymap.xml'. Then you can just drop the xml file inside your ymap directory, and OpenIV will itself convert it to an encrypted .ymap (so, to 'test.ymap', in my example).


  • MODERATOR

    @meimeiriver thanks bro!


Log in to reply
 

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