Log in to reply
 

Make sheriff spawn in city?



  • I figured out a way in the dispatch meta to increase the variety of police cars and now I have police 1234 and pranger. I made pranger an lasd fpiu skin and would like to make the ped model a sheriff instead of a cop model? for some reason i cant figure out how to do that as it seems difficult. any help would be great



  • @yellowboy06 Head over to mods\update\update.rpf\commond\data\levels\gta5

    Take the vehicles.meta and drag it to your folder or something. Editing it with Notepad++ is easier but if you want you can edit it from OpenIV too.

    Let's say you want to edit the "police" vehicle.

    Search for <modelName>police</modelName> then look for <drivers> under it's category.

    There you can see which peds can drive the police1 vehicle. You can copy this to make sheriff to drive it;

      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
    

    If you want the female sheriff drive it as well, then copy this instead;

      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
    	<Item>
          <driverName>S_F_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
    

    Be advised though it's either 2 male sheriff or 2 female sheriff in the car. It doesn't spawn with 1 male and 1 female sheriff. Cuz Rockstar is noob.

    With this current setting it's 50% chance male sheriff and 50% female sheriff. If you want to increase the chance of one gender, you can multiply it's line. For example for 33% male sheriff and 66% female sheriff;

      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
    	<Item>
          <driverName>S_F_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
    	<Item>
          <driverName>S_F_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
    

    I can also recommend you this mod too. https://www.gta5-mods.com/misc/simple-jurisdiction-fix

    It makes sheriff vehicles to spawn in the areas that is controlled by Los Angeles Sheriff Dept in real life.



  • Thansk for the help I will give it a shot, but from my understanding the pranger should already have ranger peds spawnining in it. The thing is in the dispatch.meta i added anywhere there was police3 with all the police vehicles and pranger. Thing is I want pranger to have sheriff ped instead of a cop ped. Should be simple but maybe not, adding more police variety vehicles in the the city was easy and even adding the female cops and i could probably add sheriff too but they would spawn in all the police cars (police2,3,4,etc). Id like it where only pranger has a sheriff ped model. That mod you posted does seem interesting though. Problem is it probably uses the sheriff1 and 2 slots which would look odd using them in the city as they are ventura county skins, and if i changed them to lasd then it would be odd to have lasd in paleto. Unless i can change that mod to make pranger or something else the sheriff vehicle for city sheriffs.



  • After messing with dispatch and the nice mod you mentioned I cant seem to make it where a certain car will spawn in the city sheriff areas without it also spawning in the country as well. For example have pranger in the city as a lasd livery and for blaine etc a sheriff and sheriff2. I think if I want that ill just need to make two dispatch.meta and one for in the city with the lasd cars and one for if i play in blaine. Dont know any otherway



  • @yellowboy06 So from my understanding you want the pranger vehicle to spawn with Sheriff peds instead of Park Ranger rights?

    If so. you need to the what I said for the pranger instead.

    Go to mods\update\update.rpf\commond\data\levels\gta5\vehicles.meta

    Search for <modelName>pranger</modelName> .

    and under it at the drivers section, change it to this;

      <drivers>
        <Item>
          <driverName>S_M_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
    	<Item>
          <driverName>S_F_Y_Sheriff_01</driverName>
          <npcName />
        </Item>
      </drivers>
    

    This will make the pranger spawn with 50% chance of male sheriff ped and 50% chance of female sheriff ped.



  • @Aurora11 dont think that would change it. As it already has ranger ped but if you edit the dispatch and add it to city police will spawn with police peds. But since you suown that mod i think is more realistic as lasd only occur in those areas IRL. So it works great except if i want that inner city sheriff to use pranger it will work well problem is since i edited the dispatch meta the sheriff in blaine will also use pranger and look odd with lasd in blaine. Not that big of deal i guess and i dont think there is easy work around.



  • @yellowboy06 So you changed the Park Ranger to a Los Angeles Sheriff Dept. unit with livery and want it to spawn in the city with Sheriff deputies driving it if I understood correct.

    Do what I said about <drivers> thingy, then do this;

    mods\update\update.rpf\common\data\dispatch.meta

    Under <VehicleSets> add these;

    		<Name>PARK_RANGER</Name>
    		<ConditionalVehicleSets>
    			<Item>
    				<VehicleModels>
    					<Vehicle>pranger</Vehicle>
    				</VehicleModels>
    				<PedModels>
    					<Ped>S_M_Y_Sheriff_01</Ped>
    					<Ped>S_F_Y_Sheriff_01</Ped>
    				</PedModels>
    			</Item>
    		</ConditionalVehicleSets>
    

    After that under the each <WantedLevelX> 's, <DispatchServices> add this;

    			<Item>
    				<DispatchType>DT_ParkRanger</DispatchType>
    				<NumPedsToSpawn value="2"/>  <!-- Number of pranger to spawn. 2 is 1 vehicle, 4 is 2 vehicles.. -->
    				<DispatchVehicleSets>
    					<Dispatch>PARK_RANGER</Dispatch>
    				</DispatchVehicleSets>
    			</Item>
    

    Doing all this will make the Park Ranger to spawn in city with Sheriff deputies. If you don't do the first thing I said about <drivers> it will cause it to spawn without any driver and the vehicle will drive on it's own until you go near it.



  • @Aurora11 said in Make sheriff spawn in city?:

    <Item>
    <DispatchType>DT_ParkRanger</DispatchType>
    <NumPedsToSpawn value="2"/> <!-- Number of pranger to spawn. 2 is 1 vehicle, 4 is 2 vehicles.. -->
    <DispatchVehicleSets>
    <Dispatch>PARK_RANGER</Dispatch>
    </DispatchVehicleSets>
    </Item>

    I did the things you said and will try it out. But i no longer actually want the pranger in with the regular police vehicles now you had shown me the simple jurisdiction mod i only want them in those certain neighborhoods. I can get that ok and work ok. Only issue is outside city will spawn pranger as well cause of the dispatch.meta edit i made. I will try these edits though as i did have a few of them spawn with no driver



  • @yellowboy06 I see. Unfortunately though it's kinda unlikely or difficult to designate the pranger only at spesific locations.

    The problem with that is, game has only 3 regions set for dispatch. City, Countryside and Army base.

    What I can suggest you however, if you manually edit the zonebind.ymt and set those new locations as Army Base instead, you can then assign the pranger to dispatch to Army Base and therefore you can practically have yourself a LASD region while Blaine and Sandy stays as Las Venturas Sheriff Dept region. However then you need to edit your whole dispatch.meta regarding this Army Base dispath to remove tanks, humvees an such from the dispatch so they don't dispatch inside the city.

    I was made highways as Army Base before and assigned my addon California Highway Patrol vehicles to spawn at highways but I guess I messed the dispatch.meta a bit and it caused no vehicles dispatch at all and I accidentally abandoned the project. It was most likely a dispatch.meta issue instead of zonebind issue I later realized.

    This dispatch.meta is kinda sensitive for changes and adding too many things in it causing problems with the dispatch system :(

    You can use a modified dispatch.meta that supports addon vehicles for that and change the vehicles to the ones you wish. I knew a mod but unfotunately my pc died yesterday and I can't remember which one is that :/

    Once I get it to repair though (hopefully soon :/ ) I will let you know since it's inside it's hard drive already.

    The other alternative I can suggest is using RDE but that mod drove me nuts because it's too performance heavy and can very easily broken with a tiniest change in it's xml so after 2 months of trying so hard to get it working with the changes I made, I failed at the end and gave up.



  • @Aurora11 Thanks! Sorry to hear about your PC. I looked at the zonebind and it looks quite difficult to understand lol. I will probably leave it as is the dispatch meta. Only problem now is i noticed some of the pranger have no driver. And the invisible driver fix mod didnt fix it either. I will see about redoing the dispatch slowly as it is very sensitive.



  • Well I tried what you said and it works for Del Perro, idk maybe i messed something up trying to make strawberry davis etc army base but it was just spawning lapd everywhere even in blaine lol. so i re did everything and now i just have strawberry davis etc use pranger, then i set for del perro areas and del perro beach as fbi cause idk what else to use. and it works well now i have santa monica police seperate skin in that area as i used the army base set. only problem there is the fbi spawn with 4 cops which looks a bit odd. idk how to change that? wish was somehow you could also add more dispatch zone then countryside default and armybase but idk
    everything seems good though now. if i want to play in blaine i will just have to restart game and throw in the blaine dispatch where sheriff and sheriff2 spawn countryside instead of pranger.



  • I think if anything i might just get rid of the ventura county skins and just replace sheriff1 and 2 with pranger lasd skins. And have pranger as the santa monica police skin. Would be simpler



  • still seem to have driverless/invisible drivers in those zonebind edited areas?



  • @yellowboy06 To fix invisible drivers, I can only suggest you is to make the pranger as a different addon vehicle.

    You can use this one, it's a good mod to have multiple addon vehicles ( I have all my emergency vehicles in this one addonvehicles4 folder )
    https://www.gta5-mods.com/tools/add-on-replace-base-folder

    So with this what you need to do is, copy the pranger's yft and ytd files inside it and copy it's metas as well.
    Then you need to change the name of the vehicle, let's say parkranger or pranger2, however you would like.
    After that you need to change the names in the metas as well.
    and then the vehicle will be spawning with drivers.

    You might as well use different vehicle models for sheriff too. This one looks good but it's all up to you of course https://www.lcpdfr.com/downloads/gta5mods/vehiclemodels/10586-modelchevy-tahoe-variants-arjent-edge-slicktopsiderunners/

    As for the fbi, unfortunately that car is like hard coded and no matter what it always spawns with 4 people. I have tried to change that before but there is no meta or anything you can edit for that as far as I can tell. but if you want that vehicle spawn with 2 peds instead, you can create a new version of it as addon too (same as pranger), like make it's name fbi or fib3 . and it will always spawn with 2 peds too.



  • @Aurora11 Interesting. Will give it a shot, i reinstalled gta v again to start fresh and doing one thing at a time, the addon method seems good but im not sure how difficult it is. Thanks for your help!



  • @yellowboy06 It's honestly easy. Only the metas a tiny bit of time consuming since you need to keep adding the metas of addon for each vehicle but it's not hard at all. For the pranger, you just need to copy it from the original game meta and paste it in the appropriate meta and change the pranger word to the new one you created as addon :3

    Feel free to ask if you need help with it or anything. I will do my best to help :3



  • How can i adjust the probability of spawn of certain vehicles. I know how to add police2, police4, etc to spawn with police3 but how can i make one spawn more then the other? for instance police4 spawn is rare?



  • @yellowboy06 You just need to copy it's line. If you want to increase the probabilty based on vehicle model, then this one;

    			<VehicleModels>
    				<Vehicle>police</Vehicle>
    				<Vehicle>police</Vehicle>
    				<Vehicle>police2</Vehicle>
    			</VehicleModels>
    

    This means 66% chance police will spawn, 33% chance police2 will spawn. So you can add 2 or 3 lines of police, police2 and police3 and 1 line of police4. This also applies to the peds as well.

    			<PedModels>
    				<Ped>S_M_Y_Sheriff_01</Ped>
    				<Ped>S_F_Y_Sheriff_01</Ped>
    				<Ped>S_F_Y_Sheriff_01</Ped>
    			</PedModels>
    

    This will spawn 66% chance of female, 33% chance of male sheriff.

    If you want to edit this as a dispatch group (for example you can make police1, 2 and 3 as POLICE, police4 is DETECTIVE), (same with pranger too) then you can do this one;

    			<DispatchVehicleSets>
    				<Dispatch>POLICE</Dispatch>
    				<Dispatch>POLICE</Dispatch>
    				<Dispatch>DETECTIVE</Dispatch>
    			</DispatchVehicleSets>
    

    Feel free to increase the probability even more if you still see it too often.


Log in to reply
 

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