Police Roadblocks not spawning
-
I've been adding Noose vehicles to Dispatch.meta for City Roadblocks for quite a bit but for 3-4 days no roadblocks spawn in the city, only spikestrips roadblocks and I don't know how to fix it
At first I though it was something related to the number of police vehicles under the Roadblock vehicles tag but It doesn't seem to do anything by reducing the number of cars avaible for spawn
Please help
-
-
-
@neogeo39
Doesn't seem to be anything obviously wrong with your 'dispatch.meta'.
Try 'Dispatch 'Ghost' Fix' & see if that makes any difference (remember to place copy of your 'dispatch.meta' in 'scripts' folder also) .
Although 'Dispatch 'Ghost' Fix' fixes some ghosts, there are some it cannot fix. Like the one I've had where a certain vehicle just always did it (swap vehicle out for something else was the only fix I found for that one).
To test if you have too many vehicles in there:- Make a backup of your 'dispatch.meta'
- Reduce the vehicle count leaving the problem vehicle still in there
- See if it starts to spawn correctly
If it starts working then you have your answer. Rebuild 'dispatch.meta' taking whatever limit you find into account.
If it still doesn't spawn correctly leave the '.meta' files as they are, but swap the problem vehicles '.yft/.ytd' only out for some other vehicle/s. If it starts spawning then is confirmed game no like original but .meta files good, use new vehicle instead (update it's .meta files, if required etc). That's what I had to do when this happened to me with one of the vanilla insurgents. I swapped it for this (arguably better) 'LAPD SWAT Insurgent' & everything worked correctly. Never had a 'ghost' problem since.
Another thing to note is that I put a maximum of 3 to 4 vehicles in any one 'VehicleModels' list:<VehicleModels> <Vehicle>noosecsr</Vehicle> <Vehicle>noose2</Vehicle> <Vehicle>noose</Vehicle> <Vehicle>noose3</Vehicle> <Vehicle>noose4</Vehicle> <Vehicle>nooseScout</Vehicle> <Vehicle>polpatriot</Vehicle> </VehicleModels>
One thing you might try is rather than put 7 vehicles into one 'VehicleModels' block, try creating more 'DispatchServices' names to compensate so you still have all the same vehicles spawning at the same rate etc. The only difference is they are called from 2 different 'DispatchServices' referencing two different 'VehicleSets':
Example:
<WantedLevel3> <DispatchServices> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="8"/> <DispatchVehicleSets> <Dispatch>POLICE_CAR</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceHelicopter</DispatchType> <NumPedsToSpawn value="3"/> <DispatchVehicleSets> <Dispatch>POLICE_HELI_1</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceRoadBlock</DispatchType> <NumPedsToSpawn value="2"/> <DispatchVehicleSets> <Dispatch>POLICE_ROAD_BLOCK_CARS</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_SPIKE_STRIP</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceBoat</DispatchType> <NumPedsToSpawn value="6"/> <DispatchVehicleSets> <Dispatch>POLICE_BOAT</Dispatch> </DispatchVehicleSets> </Item> </DispatchServices> </WantedLevel3>
Change to something like this (Note: 'POLICE_CAR_EXTRA' addition):
<WantedLevel3> <DispatchServices> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="4"/> <DispatchVehicleSets> <Dispatch>POLICE_CAR</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="4"/> <DispatchVehicleSets> <Dispatch>POLICE_CAR_EXTRA</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceHelicopter</DispatchType> <NumPedsToSpawn value="3"/> <DispatchVehicleSets> <Dispatch>POLICE_HELI_1</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceRoadBlock</DispatchType> <NumPedsToSpawn value="2"/> <DispatchVehicleSets> <Dispatch>POLICE_ROAD_BLOCK_CARS</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_SPIKE_STRIP</Dispatch> </DispatchVehicleSets> </Item> <Item> <DispatchType>DT_PoliceBoat</DispatchType> <NumPedsToSpawn value="6"/> <DispatchVehicleSets> <Dispatch>POLICE_BOAT</Dispatch> </DispatchVehicleSets> </Item> </DispatchServices> </WantedLevel3>
Then make this:
<VehicleSets> <Vehicle> <Name>POLICE_CAR</Name> <ConditionalVehicleSets> <Item> <ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType> <VehicleModels> <Vehicle>crusader</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_M_Marine_01</Ped> </PedModels> </Item> <Item> <ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType> <VehicleModels> <Vehicle>scpd1</Vehicle> <Vehicle>scpd3</Vehicle> <Vehicle>scpd10</Vehicle> <Vehicle>scpd13</Vehicle> <Vehicle>scpd14</Vehicle> <Vehicle>scpd14</Vehicle> <Vehicle>sherbufsc</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Sheriff_01</Ped> <Ped>S_F_Y_Sheriff_01</Ped> </PedModels> </Item> <Item> <VehicleModels> <Vehicle>scoutpol</Vehicle> <Vehicle>stanierP</Vehicle> <Vehicle>fib6</Vehicle> <Vehicle>police6</Vehicle> <Vehicle>police24</Vehicle> <Vehicle>police8</Vehicle> <Vehicle>police2</Vehicle> <Vehicle>police2</Vehicle> <Vehicle>pcpdbufsc</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Cop_01</Ped> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle>
into this:
<VehicleSets> <Vehicle> <Name>POLICE_CAR</Name> <ConditionalVehicleSets> <Item> <ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType> <VehicleModels> <Vehicle>crusader</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_M_Marine_01</Ped> </PedModels> </Item> <Item> <ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType> <VehicleModels> <Vehicle>scpd1</Vehicle> <Vehicle>scpd3</Vehicle> <Vehicle>scpd10</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Sheriff_01</Ped> <Ped>S_F_Y_Sheriff_01</Ped> </PedModels> </Item> <Item> <VehicleModels> <Vehicle>scoutpol</Vehicle> <Vehicle>stanierP</Vehicle> <Vehicle>fib6</Vehicle> <Vehicle>police6</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Cop_01</Ped> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle> <Name>POLICE_CAR_EXTRA</Name> <ConditionalVehicleSets> <Item> <ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType> <VehicleModels> <Vehicle>crusader</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_M_Marine_01</Ped> </PedModels> </Item> <Item> <ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType> <VehicleModels> <Vehicle>scpd13</Vehicle> <Vehicle>scpd14</Vehicle> <Vehicle>scpd14</Vehicle> <Vehicle>sherbufsc</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Sheriff_01</Ped> <Ped>S_F_Y_Sheriff_01</Ped> </PedModels> </Item> <Item> <VehicleModels> <Vehicle>police24</Vehicle> <Vehicle>police8</Vehicle> <Vehicle>police2</Vehicle> <Vehicle>police2</Vehicle> <Vehicle>pcpdbufsc</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_Cop_01</Ped> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle>
Something like that anyway. It's just a different way of doing the same thing as you already have but might take some pressure off the 'VehicleSets' part of the file.
Let me know how you get on
-
@a63nt-5m1th Many thanks for your time
I noticed something strange
They spawn but at a reduced rate, I mean, sometimes they do spawn and sometimes are never seen, but I'll try your solution as soon as ScriptHook V is updated so I can work again with mods
Once again, many thanks for your time
-
@neogeo39
'vehicles.meta' values are taken into account by the game when spawning dispatch vehicles also:<identicalModelSpawnDistance value="200" /> <maxNumOfSameColor value="2" /> <frequency value="100" /> <maxNum value="2" />
The values above are just taken from a random police vehicle (one I only want 2 of spawning at any one time). The main value you will be interested in is '<frequency value='. Make sure the '<frequency value's are set the same for all your dispatch vehicles ('100' is a good value). The other values you will set depending on usage/what you want/maximum vehicles of that type at any one given time/distance between spawns etc .
You set all your dispatch vehicles to similar 'vehicles.meta' amounts & then use 'dispatch.meta' instead to control the spawn rates via the ratio of '<VehicleModels>' or '<DispatchServices>' entries.Example (<VehicleModels>) 1:1:1 Ratio:
<VehicleSets> <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> </PedModels> </Item>
So in the example above if all the three vehicles have the same four 'vehicles.meta' values outlined above this, they will spawn evenly (1:1:1)
Example (<VehicleModels>) 3(crusader):1:1 Ratio:
<VehicleSets> <Vehicle> <Name>POLICE_CAR</Name> <ConditionalVehicleSets> <Item> <ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType> <VehicleModels> <Vehicle>crusader</Vehicle> <Vehicle>crusader</Vehicle> <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>
In this example just above the crusader has a 3/5 ratio of spawning & on average (with same 4 'vehicles.meta' setting) will spawn 3x more often than either of the other two individual vehicles.
The same can be done with the '<DispatchServices>' lines:
Example (<DispatchServices>) 1:1:
<DispatchServices> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="6"/> <DispatchVehicleSets> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_CAR_WOMEN</Dispatch> </DispatchVehicleSets> </Item>
Given the same 'vehicles.meta' values, 'POLICE_BIKE' & 'POLICE_CAR_WOMEN' 'VehicleSets' will spawn evenly.
Example (<DispatchServices>) 3:1:
<DispatchServices> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="6"/> <DispatchVehicleSets> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_CAR_WOMEN</Dispatch> </DispatchVehicleSets> </Item>
The 'POLICE_BIKE' VehicleSet will spawn 3x more often than 'POLICE_CAR_WOMEN'.
Also, you could try this:
<Item> <DispatchType>DT_PoliceRoadBlock</DispatchType> <NumPedsToSpawn value="4"/> <DispatchVehicleSets> <Dispatch>POLICE_ROAD_BLOCK_CARS</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_CARS</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_RIOT</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_RIOT</Dispatch> <Dispatch>POLICE_ROAD_BLOCK_SPIKE_STRIP</Dispatch> </DispatchVehicleSets> </Item>
That should increase the chance of 'POLICE_ROAD_BLOCK_CARS' or 'POLICE_ROAD_BLOCK_RIOT' spawning in relation to 'POLICE_ROAD_BLOCK_SPIKE_STRIP' ('vehicles.meta' freq etc settings dependent). Might give you a quick solution (luck dependent).
Any problems/anything I haven't explained very well give me a shout & I'll help you out