Log in to reply
 

Attempting to add SAHP to the Countryside Freeways.



  • So recently I've been trying to add the SAHP to the Freeways/Highways in the Countryside and only the countryside. I've been able to get them to spawn on the Freeways in LS but not the Countryside, the Sheriff's still spawn on the Countryside Freeways/Highways. Would anyone happen to know what I would need to change in dispatch to get the SAHP to spawn ONLY on the Countryside Freeways/Highways in place of the Sheriff's?



  • @Man-With-a-Cup
    This should get you most, if not all of the way to what you want :thumbsup:

    It might need some small edits to cover all Countryside Freeway zones (if Rockstar named some differently for example, see 'Background Info:' below for that), but did a quick test & it appears to work well as it is.

    Note:
    Make a backup of 'update.rpf' beforehand obvs :thumbsup:

    Instructions:

    • Grab this decrypted zonebind.ymt & install it (drag & drop) over the original here:

    ...\mods\update\update.rpf\x64\levels\gta5\zonebind.ymt

    • Then open up 'dispatch.meta' & add a '<Vehicle>' sections named 'VEHICLE_RESPONSE_COUNTRYSIDE_HW' like this:

    Example:

    <kits>
    	<Item>
    		<ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE_HW</ZoneType>
    		<VehicleModels>
    			<Vehicle>SAHP_Vehicle_HERE</Vehicle>
    			<Vehicle>SAHP_Vehicle_HERE</Vehicle>
    			<Vehicle>SAHP_Vehicle_HERE</Vehicle>
    		</VehicleModels>
    		<PedModels>
    			<Ped>S_M_Y_HwayCop_01</Ped>
    		</PedModels>
    	</Item>
    </kits>
    
    • Afterwards it should look somewhat like this:

    Full 'POLICE_CAR' '<Vehicle>' Section Example:

    	<Vehicle>
    		<Name>POLICE_CAR</Name>
    		<ConditionalVehicleSets>
    			<Item>
    				<ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType>
    				<VehicleModels>
    					<Vehicle>crusader</Vehicle>
    					<Vehicle>mesa3</Vehicle>
    					<Vehicle>barracks</Vehicle>
    				</VehicleModels>
    				<PedModels>
    					<Ped>S_M_M_Marine_01</Ped>
    					<Ped>S_M_Y_Marine_01</Ped> 
    					<Ped>S_M_Y_Marine_03</Ped>
    				</PedModels>
    			</Item>
    			<Item>
    				<ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType>
    				<VehicleModels>
    					<Vehicle>SHERIFF</Vehicle>
    					<Vehicle>SHERIFF</Vehicle>
    					<Vehicle>SHERIFF2</Vehicle>
    				</VehicleModels>
    				<PedModels>
    					<Ped>S_M_Y_Sheriff_01</Ped> 
    				</PedModels>
    			</Item>
    			<Item>
    				<ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE_HW</ZoneType> <!-- 'VEHICLE_RESPONSE_COUNTRYSIDE_HW' section added here -->
    				<VehicleModels>
    					<Vehicle>policeb</Vehicle> <!-- SAHP Vehicle added here -->
    					<Vehicle>scoquette</Vehicle> <!-- SAHP Vehicle added here -->
    					<Vehicle>scoquette</Vehicle> <!-- SAHP Vehicle added here -->
    				</VehicleModels>
    				<PedModels>
    					<Ped>S_M_Y_HwayCop_01</Ped>
    				</PedModels>
    			</Item>
    			<Item>
    				<VehicleModels>
    					<Vehicle>police3</Vehicle>
    					<Vehicle>police2</Vehicle>
    					<Vehicle>police</Vehicle>
    					<Vehicle>policet</Vehicle>
    				</VehicleModels>
    				<PedModels>
    					<Ped>S_M_Y_Cop_01</Ped> 
    				</PedModels>
    			</Item>		
    		</ConditionalVehicleSets>
    	</Vehicle>
    

    That's it, repeat the process for all the '<Vehicle>' sections you want your SAHP vehicles to appear in & then install that 'dispatch.meta' & test the result in-game.

    Any issues/questions, give me a shout :thumbsup:

    Background Info:
    Useful if you find some Highway sections have been missed, or you want to edit further etc.

    Basically, what I did was:

    • Open up 'zonebind.ymt' & search for '<spName>freeway</spName>'
    • Then change all the 'freeway' 'collision_722e1381_3o5hd5' lines that had 'VEHICLE_RESPONSE_COUNTRYSIDE' in them to 'VEHICLE_RESPONSE_COUNTRYSIDE_HW' (any name will work)
    • Then added 'VEHICLE_RESPONSE_COUNTRYSIDE_HW' sections to 'dispatch.meta' so there were some dispatch vehicles to spawn.

    Extra Info:
    Useful if you need to identify & locate the area of a zone in the game.

    The '<zoneName>' lines in 'zonebind.ymt' corrolate to lines of the same name in 'popzone.ipl' which give you the in-game co-ordinates that the zone covers:

    zonebind.ymt:

        <Item>
          <zoneName>FrW29</zoneName> <!-- The 'FrW29' in this line ties to a 'FrW29' line in 'popzone.ipl' -->
          <spName>freeway</spName>
          <mpName>net_freeway</mpName>
          <vfxRegion>vfxregioninfo_mountain</vfxRegion>
          <collision_7111ac8a_s3gzpn value="7" />
          <collision_6eaf264d_ywfwdb>enum_a5f39069_79gaqs3</collision_6eaf264d_ywfwdb>
          <collision_0d0110a1_l4jdar>enum_64176477_9ii54so</collision_0d0110a1_l4jdar>
          <collision_722e1381_3o5hd5>VEHICLE_RESPONSE_COUNTRYSIDE_HW</collision_722e1381_3o5hd5>
          <collision_0d088729_1iu3ly>enum_1ea465e5_73hl300</collision_0d088729_1iu3ly>
          <vehDirtMin value="0.000000" />
          <vehDirtMax value="0.700000" />
          <vehDirtGrowScale value="0.250000" />
          <pedDirtMin value="0.000000" />
          <pedDirtMax value="0.250000" />
          <collision_ce694946_9wex6bz value="54" />
          <collision_3acf3621_6qxknh value="54" />
          <collision_15cf5017_r3uqar value="54" />
          <collision_554360b5_2qrbh2 value="0.000000" />
          <collision_7a9914fd_738t2vu value="0.000000" />
          <collision_56de3ed1_9kyb3hw value="1.000000" />
          <collision_895699cc_4grhh7b value="1.000000" />
          <collision_3cbb62e0_87duti0 value="-1" />
          <collision_008ed931_9ozzypr value="false" />
          <collision_aebefeed_9qf2d2j value="false" />
        </Item>
    

    popzone.ipl:

    FrW29, 1902.51, 2302.25, 0.0, 1949.66, 2403.49, 1250.0, Desrt, 0 <!-- linked to 'FrW29' section in 'zonebind.ymt' -->
    

    popzone.ipl coordinates format:

    FrW29, (x min), (y min), 0.0, (x max), (y max), 1250.0, Desrt, 0 <!-- ignore other values, height etc -->
    

    If you copy the line & change it into this format:

    (x min), (y min)
    (x max), (y max)
    

    'FrW29' Example:

    1902.51, 2302.25
    1949.66, 2403.49
    

    you can paste it straight into the 'Data (1 per line):' box (bottom right) on this GTA V Interactive Map & see what area it covers (hit the 'Find (Multi)' button under the box to apply & blue tags will appear on the map marking the area rectangle's bottom left & top right points).



  • @a63nt-5m1th Thanks man, I'll take a look and see if this work.



  • Hello, sorry for sort of necroing this thread, but has doing this actually worked for you? I have tried to do this myself, however the game just considers any custom defined VEHICLE_RESPONSE group as a replacement for the VEHICLE_RESPONSE_DEFAULT response type. In other words, when adding any VEHICLE_RESPONSE_###### group, it just spawns that agency instead of the LSPD. I have not figured out a solution, and I have been trying to do so for over a month now.



  • @anytech18 said in Attempting to add SAHP to the Countryside Freeways.:

    it just spawns that agency instead of the LSPD

    That's the point of this thread, to edit 'zonebind.ymt' & replace the normal VEHICLE_RESPONSE group (in certain areas) with a custom one, so it is called instead of VEHICLE_RESPONSE_DEFAULT &/or VEHICLE_RESPONSE_COUNTRYSIDE when you are in that area. :thumbsup:


Log in to reply
 

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