Jump to content
TheF3nt0n

Adding a new emergency vehicle is possible now.

Recommended Posts

Sorry but I don't have LSPD:FR on my GTA V, I think you should ask the developer of LSPD:FR, You could get best answer from there.

If you added a new vehicle, how you personally did for spawn it? Which loader or tool do you use?

Share this post


Link to post
Share on other sites

@Break @Mercuri How are you trying to spawn it? The RAGE hook won't autocomplete the name, but it should spawn it if you manually type the name. Did you make sure to add to vehicles.meta and carvariations.meta?

Share this post


Link to post
Share on other sites

Works great, using the christmas DLC files to add the new vehicles.

Added vehicles I have working and spawning from dispatch levels:

  • SAHP Cruiser
  • SAHP Buffalo
  • LSSD Interceptor
  • LS County Ambulance
  • LS County Fire Truck
Edited by The Loot

Share this post


Link to post
Share on other sites

Glad to hear that, but there is one bug at the moment, If you're using custom fire truck or ambulance on dispatch.meta, It will just driving around instead driving into fire/dead bodies, I think there is a file controls both vehicles that will responds to fire and dead bodies, New added police SUV will also not working on dispatch.meta, Especially on SWAT_SUV section, It doesn't have any driver and passengers on the new added vehicle. It is hardcored or placed on Native script?

Share this post


Link to post
Share on other sites

@Break @Mercuri How are you trying to spawn it? The RAGE hook won't autocomplete the name, but it should spawn it if you manually type the name. Did you make sure to add to vehicles.meta and carvariations.meta?

Yes, I did, And doesn´t work. I will try to add it again starting in the fist step. I must lost something

Share this post


Link to post
Share on other sites

Glad to hear that, but there is one bug at the moment, If you're using custom fire truck or ambulance on dispatch.meta, It will just driving around instead driving into fire/dead bodies, I think there is a file controls both vehicles that will responds to fire and dead bodies, New added police SUV will also not working on dispatch.meta, Especially on SWAT_SUV section, It doesn't have any driver and passengers on the new added vehicle. It is hardcored or placed on Native script?

Hmm, bummer. Also may have gone a bit past stable as I've had a few crashes after added the new vehicles and a ped, and overhauled the dispatch file.

Share this post


Link to post
Share on other sites

Okay I did it again and it doesn't work, Im sure that Im losing one step or something, Im spaniard and sometimes is difficult for me to understand the english

Thats what I did:

1. In x64e.rpf/levels/gta5/vehicles.rpf I added the new vehicle (a copy of police3) with the "sheriff3" name.

2. In common.rpf/data/levels/gta5 I edited the  vehicles.meta file adding the new item named "sheriff3"

<Item>
      <modelName>sheriff3</modelName>
      <txdName>sheriff3</txdName>
      <handlingId>POLICE3</handlingId>
      <gameName>SHERIFF3</gameName>
      <vehicleMakeName />
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash>POLICE3</audioNameHash> *I tried too with: <audioNameHash />*
      <layout>LAYOUT_STD_EXITFIXUP</layout>
      <coverBoundOffsets>POLICE3_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>MID_BOX_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>VEHICLE_BONNET_CAMERA_MID_NEAR</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.060000" z="-0.030000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="-0.020000" />
      <FirstPersonProjectileDriveByIKOffset x="0.055000" y="-0.075000" z="-0.045000" />
      <FirstPersonProjectileDriveByPassengerIKOffset x="-0.055000" y="-0.075000" z="-0.045000" />
      <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="-0.060000" z="-0.030000" />
      <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonMobilePhoneOffset x="0.130000" y="0.275000" z="0.530000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.425000" />
      <FirstPersonMobilePhoneSeatIKOffset>
        <Item>
            <Offset x="0.136000" y="0.156000" z="0.445000" />
            <SeatIndex value="2" />
        </Item>
        <Item>
            <Offset x="0.136000" y="0.156000" z="0.445000" />
            <SeatIndex value="3" />
        </Item>
      </FirstPersonMobilePhoneSeatIKOffset> 
      <PovCameraOffset x="0.000000" y="-0.175000" z="0.675000" />
      <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
      <PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
      <PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
      <vfxInfoName>VFXVEHICLEINFO_CAR_GENERIC</vfxInfoName>
      <shouldUseCinematicViewMode value="true" />
      <shouldCameraTransitionOnClimbUpDown value="false" />
      <shouldCameraIgnoreExiting value="false" />
      <AllowPretendOccupants value="true" />
      <AllowJoyriding value="false" />
      <AllowSundayDriving value="false" />
      <AllowBodyColorMapping value="false" />
      <wheelScale value="0.244000" />
      <wheelScaleRear value="0.244000" />
      <dirtLevelMin value="0.000000" />
      <dirtLevelMax value="0.300000" />
      <envEffScaleMin value="0.000000" />
      <envEffScaleMax value="1.000000" />
      <envEffScaleMin2 value="0.000000" />
      <envEffScaleMax2 value="1.000000" />
      <damageMapScale value="0.600000" />
      <damageOffsetScale value="1.000000" />
      <diffuseTint value="0x00FFFFFF" />
      <steerWheelMult value="1.000000" />
      <HDTextureDist value="5.000000" />
      <lodDistances content="float_array">
        15.000000
        30.000000
        70.000000
        140.000000
        500.000000
        500.000000
      </lodDistances>
      <minSeatHeight value="0.83" />
      <identicalModelSpawnDistance value="20" />
      <maxNumOfSameColor value="10" />
      <defaultBodyHealth value="1000.000000" />
      <pretendOccupantsScale value="1.000000" />
      <visibleSpawnDistScale value="1.000000" />
      <trackerPathWidth value="2.000000" />
      <weaponForceMult value="1.000000" />
      <frequency value="100" />
      <swankness>SWANKNESS_0</swankness>
      <maxNum value="2" />
      <flags>FLAG_HAS_LIVERY FLAG_EXTRAS_ALL FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_HAS_INTERIOR_EXTRAS FLAG_REPORT_CRIME_IF_STANDING_ON</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_BACK_PLATES</plateType>
      <dashboardType>VDT_GENTAXI</dashboardType>
      <vehicleClass>VC_EMERGENCY</vehicleClass>
      <wheelType>VWT_SPORT</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
      <extraIncludes />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="false" />
      <needsRopeTexture value="false" />
      <requiredExtras />
      <rewards>
        <Item>REWARD_WEAPON_PUMPSHOTGUN</Item>
        <Item>REWARD_AMMO_PUMPSHOTGUN_ENTER_VEHICLE</Item>
        <Item>REWARD_STAT_WEAPON</Item>
      </rewards>
      <cinematicPartCamera>
        <Item>WHEEL_FRONT_RIGHT_CAMERA</Item>
        <Item>WHEEL_FRONT_LEFT_CAMERA</Item>
        <Item>WHEEL_REAR_RIGHT_CAMERA</Item>
        <Item>WHEEL_REAR_LEFT_CAMERA</Item>
      </cinematicPartCamera>
      <NmBraceOverrideSet />
      <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
      <buoyancySphereSizeScale value="1.000000" />
      <pOverrideRagdollThreshold type="NULL" />
      <firstPersonDrivebyData>
        <Item>STD_POLICE3_FRONT_LEFT</Item>
        <Item>STD_POLICE3_FRONT_RIGHT</Item>
        <Item>STD_POLICE2_REAR_LEFT</Item>
        <Item>STD_POLICE2_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>

And the interior texture:

    <Item>
      <parent>vehicles_poltax_interior</parent>
      <child>sheriff3</child>
    </Item>

 3. Finally in update/x64/dlcpacks/mpchristmas2/dlc.rpf/common/data I edited the carvariantion.meta and added the new item

    <Item>
      <modelName>sheriff3</modelName>
      <colors>
        <Item>
          <indices content="char_array">
            132
            132
            0
            156
          </indices>
          <liveries>
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            132
            132
            0
            156
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            132
            132
            0
            156
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            132
            132
            0
            156
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
        <Item>
          <indices content="char_array">
            132
            132
            0
            156
          </indices>
          <liveries>
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
      </colors>
      <kits />
      <windowsWithExposedEdges />
      <plateProbabilities>
        <Probabilities />
      </plateProbabilities>
      <lightSettings value="1" />
      <sirenSettings value="2" />
    </Item>

*I tryed too with mpheist*

After that, as it doesnt work, I tried to Rebuild all the .rpf files edited.

Thanks for your time and help, I hope someone can see that what im losing.

Share this post


Link to post
Share on other sites

So I have gotten new cars, and I can spawn them with the trainer. Hell, I can even get the cops to use them by adding them into dispatch.meta. However, it causes a pretty strange bug. If I add, say, a new highway patrol car and have it spawn at 3 stars, then it will show up with the LSPD and SWAT. But if you kill the original responding officers or simply outrun them, the game stops spawning the highway patrol car AND LSPD officers/detectives and will only spawn SWAT teams until you reset the wanted level back to one without the added cars. I'm not sure why it does this. 

Share this post


Link to post
Share on other sites

I've run into issues with way too many helicopters being spawned, but nothing like that, at least that I have noticed.

Share this post


Link to post
Share on other sites

It is working fine for me, It's weird by the way, I think other files may cause this, but I am not sure yet.

Hi, can you please read my last comment and told me if im missing something? thanks :P

Share this post


Link to post
Share on other sites

Hi, can you please read my last comment and told me if im missing something? thanks :P

Try using only the files from the Christmas DLC (it includes its own vehicle rpf and meta).

Share this post


Link to post
Share on other sites

Well, I already told you, I am not using RAGE Hook, You should ask the RAGE hook developer about this, I don't know nothing about RAGE Hook

Share this post


Link to post
Share on other sites

would it be to hard of someone to make a vid of how to do this? I think I get all of it but a video walk-though would help alot


 

if your replying to me Please @0taku or Quote me so I get a notification 

Share this post


Link to post
Share on other sites

would it be to hard of someone to make a vid of how to do this? I think I get all of it but a video walk-though would help alot

Going to second this. I have been messing around for hours and was only somewhat successful, eventually I was able to spawn a custom vehicle but it would not load interior textures and the finish was flat and not shiny, somehow. I did edit the vehicles.meta file correctly adding the texture line at the end of the file.

Share this post


Link to post
Share on other sites

Hi all, my problem was solved with the last version of RAGE plugin hook, now it spawns all new added vehicles ^^

Share this post


Link to post
Share on other sites

Ragehook would have done that before, it just wouldn't auto-complete the model name; you had to type it all in manually. Now it reads ALL model files present in your game and will auto-complete them.

Share this post


Link to post
Share on other sites

would it be to hard of someone to make a vid of how to do this? I think I get all of it but a video walk-though would help alot

i could make a video i do often stream and make videos for stuff id just have to do a few times in my sopare time to make sure the results were conclusive wouldnt want a to make a video then the interior nmmot work or soemthing liek that :D

Share this post


Link to post
Share on other sites

Soo, this is actually pretty useful as I managed to add a new train engine. Although I have a question - how can I enable liveries for a new vehicle? Or that doesn't work yet?

Share this post


Link to post
Share on other sites

It is not considered as vehicle mods, It is just another shitty replacement for bumper car or roller car, It has nothing to do with actual vehicle mods, We cannot edit models yet, We have to wait, For who uses my tutorials, Don't forget to credit me as I am the first one who managed to add the vehicle with working sound and liveries.

Share this post


Link to post
Share on other sites

About liveries, It is located at carvariations.meta, Search for "liveries" and you'll get what you want.

I found those, but I don't get it. I know that each of the eight lines corresponds to a livery, but even if I enable two of them only one livery is avaliable in-game. Is texture naming important? I named them "goloco_sign_1" and I tried with "goloco_livery_1" aswell. I have multiple liveries in there but they don't seem to work.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...