Jump to content
franko3219

Added Emergency Vehicle Issue

Recommended Posts

Alright, hopefully this will be the last issue that I need help on for a while. I am currently having an issue where my added sheriff vehicles, will not successfully initiate a stop on another car. I can blip them, but they will not pull over. I added slots for a sheriff3, sheriff4 and sheriff5. The added sheriff3 works fine, no issues there. The sheriff 5, which is a cvpi model, has texture issues and I am assuming is just because I am trying to load too many textures; however my sheriff4 shows up, and functions properly, at least from a model standpoint. I followed Giordano's guide to adding slots, with the exception of the gameconfig file, because that file does is for the old GTA version. I created the metas for both vehicle, which include the proper flags for emergency vehicle and such, as well as, a carvariation for both. My trafficcontrol is set to false for my ELS.ini. I am just finding it hard to figure out where exactly I went wrong. I am not using NVR, I am using RadianceV. Would anyone have any suggestions to check? I can provide any additional info if necessary.

Share this post


Link to post
Share on other sites
16 hours ago, franko3219 said:

Alright, hopefully this will be the last issue that I need help on for a while. I am currently having an issue where my added sheriff vehicles, will not successfully initiate a stop on another car. I can blip them, but they will not pull over. I added slots for a sheriff3, sheriff4 and sheriff5. The added sheriff3 works fine, no issues there. The sheriff 5, which is a cvpi model, has texture issues and I am assuming is just because I am trying to load too many textures; however my sheriff4 shows up, and functions properly, at least from a model standpoint. I followed Giordano's guide to adding slots, with the exception of the gameconfig file, because that file does is for the old GTA version. I created the metas for both vehicle, which include the proper flags for emergency vehicle and such, as well as, a carvariation for both. My trafficcontrol is set to false for my ELS.ini. I am just finding it hard to figure out where exactly I went wrong. I am not using NVR, I am using RadianceV. Would anyone have any suggestions to check? I can provide any additional info if necessary.

 

For the CVPI, define 'texture issue'?

Share this post


Link to post
Share on other sites

cDWkl5Q.png

Your topic has been moved to GTA V Support, this is not LSPDFR related.
Please post in the correct location in the future.

Share this post


Link to post
Share on other sites
On 12/25/2018 at 2:01 AM, Giordano said:

 

For the CVPI, define 'texture issue'?

 

The texture issue that I am having with the CVPI is similar to the issue described in this post:

 

The model loads, but the skin appears to not load properly. Unfortunatley I do not have a screenshot at the moment to upload. When I researched that specific issue, I noticed that the majority of those issues were as a result of a conflict with NVR; however, I do not use NVR, so I had in another post that described my similar issue, that it could be that there are too many added vehicles, and that the texture would not load (or something to that effect). I have added three addon vehicles without a modded gameconfig, because the gameconfig that I tried to use that was supposed to be updated for the most recent version, kept crashing my game. 

Share this post


Link to post
Share on other sites
3 minutes ago, franko3219 said:

 

The texture issue that I am having with the CVPI is similar to the issue described in this post:

 

The model loads, but the skin appears to not load properly. Unfortunatley I do not have a screenshot at the moment to upload. When I researched that specific issue, I noticed that the majority of those issues were as a result of a conflict with NVR; however, I do not use NVR, so I had in another post that described my similar issue, that it could be that there are too many added vehicles, and that the texture would not load (or something to that effect). I have added three addon vehicles without a modded gameconfig, because the gameconfig that I tried to use that was supposed to be updated for the most recent version, kept crashing my game. 

 

I doubt it has to do with too many added vehicles.  More than likely, you've done something incorrectly. Make sure the vehicle names in the vehicles.meta, carvariations and the .ytd are all correct.

Share this post


Link to post
Share on other sites
1 hour ago, Giordano said:

 

I doubt it has to do with too many added vehicles.  More than likely, you've done something incorrectly. Make sure the vehicle names in the vehicles.meta, carvariations and the .ytd are all correct.

Thanks for the suggestion. I'll take a look once I get home from work today, and see if there's something that I've overlooked somewhere along the way.

Share this post


Link to post
Share on other sites

Well, I have gone back through both the meta and variations file, but cannot seem to identify any holes; however, I am not an expert at this either. I will put the sheriff5 meta and variations lines below, if any notices anything that should be changed, please let me know.

 

vehicles.meta:

 

Spoiler

    <Item>
      <modelName>sheriff5</modelName>
      <txdName>sheriff5</txdName>
      <handlingId>police</handlingId>
      <gameName>SHERIFF5</gameName>
      <vehicleMakeName />
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash>sheriff</audioNameHash>
      <layout>LAYOUT_STANDARD</layout>
      <coverBoundOffsets>SHERIFF_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>VEHICLE_BONNET_CAMERA_MID_HIGH</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.060000" z="-0.060000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.-050000" z="-0.020000" />
      <FirstPersonProjectileDriveByIKOffset x="0.000000" y="-0.075000" z="-0.045000" />
      <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="-0.075000" z="-0.045000" />
      <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.020000" z="0.030000" />
      <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.020000" z="0.030000" />
      <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
      <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="-0.060000" z="-0.060000" />
      <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.155000" y="0.270000" z="0.508000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.405000" />
      <FirstPersonMobilePhoneSeatIKOffset>
        <Item>
            <Offset x="0.136000" y="0.156000" z="0.425000" />
            <SeatIndex value="2" />
        </Item>
        <Item>
            <Offset x="0.136000" y="0.156000" z="0.425000" />
            <SeatIndex value="3" />
        </Item>
      </FirstPersonMobilePhoneSeatIKOffset> 
      <PovCameraOffset x="0.000000" y="-0.145000" z="0.645000" />
      <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="true" />
      <wheelScale value="0.237100" />
      <wheelScaleRear value="0.237100" />
      <dirtLevelMin value="0.000000" />
      <dirtLevelMax value="0.850000" />
      <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
        60.000000
        120.000000
        500.000000
        500.000000
      </lodDistances>
      <minSeatHeight value="0.839" />
      <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_1</swankness>
      <maxNum value="2" />
      <flags>FLAG_HAS_LIVERY FLAG_EXTRAS_REQUIRE FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON FLAG_HAS_INTERIOR_EXTRAS</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
      <dashboardType>VDT_GENTAXI</dashboardType>
      <vehicleClass>VC_EMERGENCY</vehicleClass>
      <wheelType>VWT_MUSCLE</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_POLICE_FRONT_LEFT</Item>
        <Item>STD_POLICE_FRONT_RIGHT</Item>
        <Item>STD_POLICE_REAR_LEFT</Item>
        <Item>STD_POLICE_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>

 

carvariations.meta

 

Spoiler

<Item>
      <modelName>sheriff5</modelName>
      <colors>
        <Item>
          <indices content="char_array">
            134
            134
            156  
            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">
            134
            134
            156  
            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">
            134
            134
            156  
            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">
            134
            134
            156  
            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">
            134
            134
            156  
            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>
        <Item>157_massacaro2_modkit</Item>
      </kits>
      <windowsWithExposedEdges />
      <plateProbabilities>
        <Probabilities />
      </plateProbabilities>
      <lightSettings value="1" />
      <sirenSettings value="1" />
    </Item>

 

Edited by franko3219

Share this post


Link to post
Share on other sites

Well I was able to finally figure out what was causing both of my issues. I decided to go line by line and take a really close look at everything. Embrassingly, one of the first things I discovered was that I forgot the, “I”, in sheriff5.ytd (sherff5.ytd). I just didn’t notice it because it didn’t jump out that it was missing when I looked at it before. That resolved the texture issue  with the CVPI.

 

I was still left with issue of both my sheriff4 and sheriff5 cars not being able to pull anyone over. Well this appeared to happen because somehow I missed, “<Item>“, to start one of the original lines, but again it was buried in the lines and I didn’t see it until I went through line by line. Well now everything seems to be operating normal. I share this as hopefully if anyone else runs in to a similar issue, they can find usefulness in my story of not paying attention to detail, and are able to resolve their issue the same way.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×