If I change the cruisers to a motorcycle will two cops still spawn with it?
If so, how would I go about changing it so only one cop spawns?
I would say try ?
I'm interested by the answer too.
+1 (surprised we didn't try this lol)
Did you add the 'FLAG_LAW_ENFORCEMENT' to the vehicle's 'vehicles.meta' '<flags>' line? If not, try that
@a63nt-5m1th Game crashing after getting wanted.
adding 'FLAG_LAW_ENFORCEMENT' in the desired motorcycle makes your game crash ?
I remember REDUX dispatch was already including a motorcycle, and I've never saw one.
I'd assume that motorcycle vehicles are binded to a specific dispatch type, and I suppose 'DT_PoliceRiders'.
I've never tried to dispatch motorcycles in game tho !
@epoqx in the vehicle.meta for police, police2, and police3. Also replaced and added the info for the motorcycle to policeb.
Removed the mods folder to rebuild it new. I'm not going to continue trying to make this work.
In the dispatch.meta, you changed police, police2 and police3 to policeb. All this in 'POLICE_CAR' ?
Just a little tip for your next modding tries : Make a copy of your Mods folder. Updat it regularly, so you just have to copy it back to the Rockstar main directory if things go wrong.
Of course I keep a copy of my mods folder. Usually. I am not a noob at this.
Never said you where.
Removed the mods folder to rebuild it new.
I just added additional informations to you answer.
I think I remember reading somewhere that you can have issues (not crashing, just they don't spawn) with dispatch police motorbikes unless they are called using 'POLICE_BIKE' or 'POLICE_MOTORCYCLE' '<VehicleSets>'.
'POLICE_BIKE' can certainly be used to call other dispatch vehicles, so it's not restrictive in that way (just use it instead of 'POLICE_CAR' etc whenever you need a bike spawning).
I have it set up like this in my game & all the vehicles spawn:
<WantedLevel2> <DispatchServices> <Item> <DispatchType>DT_PoliceAutomobile</DispatchType> <NumPedsToSpawn value="8"/> <DispatchVehicleSets> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_BIKE</Dispatch> <Dispatch>POLICE_CAR_WOMEN</Dispatch> <Dispatch>POLICE_CAR_WOMEN</Dispatch> </DispatchVehicleSets> </Item>
<Vehicle> <Name>POLICE_BIKE</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>policeb</Vehicle> <Vehicle>SHERIFF</Vehicle> <Vehicle>SHERIFF</Vehicle> <Vehicle>SHERIFF2</Vehicle> </VehicleModels> <PedModels> <Ped>S_M_Y_HwayCop_01</Ped> </PedModels> </Item> <Item> <VehicleModels> <Vehicle>police2</Vehicle> <Vehicle>police</Vehicle> <Vehicle>policet</Vehicle> </VehicleModels> <PedModels> <Ped>S_F_Y_Cop_01</Ped> <Ped>S_M_Y_Cop_01</Ped> </PedModels> </Item> </ConditionalVehicleSets> </Vehicle>
@a63nt-5m1th That's all very helpful. Thanks. So I only use POLICE_BIKE if I don't want them to use any cruisers?
So, bikes are spawning but without riders.
I guess regular police can't ride motorcycles. Changed it to S_M_Y_HwayCop_01 and the rider spawned with the bike.
@a63nt-5m1th I figured it out with the info you gave. Wasn't working right because of the
dispatch.meta was from a mod and not vanillaBetter Chases+ mod.
Apparently I was wrong. Vanilla dispatch.meta has normal cops under police motorcycle. So I guess they can use them.
So I only use POLICE_BIKE if I don't want them to use any cruisers?
Just use 'POLICE_BIKE/POLICE_MOTORCYCLE' if you want to dispatch motorbikes at all, but it can be used to dispatch cruisers & other vehicles also, just depends on what you have set in the 'POLICE_BIKE' or 'POLICE_MOTORCYCLE' (whichever you choose to use) '<VehicleSets>' section.
So 'POLICE_BIKE' or 'POLICE_MOTORCYCLE' is essential to dispatch motorbikes (from what I've read), but allows you to dispatch other vehicles (if you like) also (confirmed, I have that in my game).
Been so long since I played vanilla, I can't remember, but looking at my vanilla 'dispatch.meta', although it contains a 'POLICE_MOTORCYCLE' '<VehicleSet>', it doesn't look like 'POLICE_MOTORCYCLE' is called in the '<WantedLevel1>5>' '<DispatchServices>' section (?), so if the 'policeb' turns up as dispatch in the vanilla game, I'm not sure how it does it?! ( @epoqx perhaps like vanilla loadouts etc, vanilla files are such a mess, it just gets called by accident sometimes lol)
It certainly appears (twice) in 'vehiclemodelsets.meta' so will appear cruising around on the streets etc. Perhaps it gets involved chasing you that way? (if you do illegal stuff in the presence of that motorbike cop etc).
The other thing I noticed was the 'policeb' has 'S_M_Y_HWayCop_01' defined as it's driver in 'vehicles.meta':
<drivers> <Item> <driverName>S_M_Y_HWayCop_01</driverName> <npcName /> </Item> </drivers>
I would have thought that only affected it when spawning on the streets, but perhaps it affects dispatch also?! You could try changing the driver to 'S_M_Y_Cop_01' & see if it makes any difference to who can spawn riding motorbikes etc?
Had a look at 'peds.ymt/pedpersonality.ymt' looking for any bike themed flags, but didn't find any. Entirely possible certain dispatch peds (like 'S_M_Y_HWayCop_01') have hidden flags that give them the ability to dispatch on bikes. Only testing will answer, but thought I'd mention it.
I know as part of fixing ghost dispatch vehicles (dispatch vehicles appear, no driver, don't chase you etc) I tried setting the driver of any dispatch vehicle the same as the peds defined for that vehicle in 'dispatch.meta', just can't remember the results, although I've left them like that.
You know, the shotgun approach, try anything & see if it sticks... Oh, it's working, not sure what fixed it , but it's fixed, leave it alone, don't touch it ever again etc .