Log in to reply
 

Does vehicles.meta assign peds to vehicles?



  • The title says it all ^^

    trying to figure out which .meta or file in GTA V that assigns NPCs to certain vehicles. because I'm trying to assign the highway cop to police3



  • @GamerX420
    'dispatch.meta':

    ...\Grand Theft Auto V\mods\update\update.rpf\common\data\dispatch.meta

    in the '<PedModels>' section here:

    Example:

    	<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> <!-- <<< these peds here spawn in crusader/mesa3/barracks-->
    						<Ped>S_M_Y_Marine_03</Ped>
    					</PedModels>
    				</Item>
    				<Item>
    					<ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType>
    					<VehicleModels>
    						<Vehicle>SHERIFF</Vehicle>
    						<Vehicle>SHERIFF2</Vehicle>
    					</VehicleModels>
    					<PedModels>
    						<Ped>S_M_Y_Sheriff_01</Ped> <!-- <<< here (spawn in sheriff/sheriff2) -->
    					</PedModels>
    				</Item>
    				<Item>
    					<VehicleModels>
    						<Vehicle>police3</Vehicle>
    					</VehicleModels>
    					<PedModels>
    						<Ped>S_M_Y_HwayCop_01</Ped> <!-- <<< & here. HwayCop poilce3 ONLY -->
    					</PedModels>
    				</Item>		
    			</ConditionalVehicleSets>
    		</Vehicle>
    

    The last example above ('HwayCop poilce3 ONLY') is the one you want to copy.
    Note: If you put more vehicles other than 'police3' in it's '<VehicleModels>' section, the Highway Cops will spawn in them too.



  • @a63nt-5m1th thx m8



  • @a63nt-5m1th would i be able to assign policeold2 to highway cop as well?



  • @GamerX420 said in Does vehicles.meta assign peds to vehicles?:

    would i be able to assign policeold2 to highway cop as well?

    I don't see why not, never tried but you can put any vehicle you want to spawn as dispatch & it will spawn as long as it has the correct flags in it's 'vehicles.meta' ('FLAG_LAW_ENFORCEMENT' & 'FLAG_EMERGENCY_SERVICE' etc)

    Any issues with ghost dispatch vehicles (dispatch vehicles without drivers driving about but not engaging in chase) as you edit 'dispatch.meta' then try Dispatch 'Ghost' Fix & see if it solves it. Doesn't always happen, more if you have editied 'dispatch.meta' a lot or added a heap of new vehicles etc.



  • Sorry for necroing this topic...but is there any way to assign a specific ped to a specific car?
    For example, i was able to add an addon-on police vehicle to spawn in traffic only in the AIRPORT area , but it is driven by a civilian :))))



  • @rhazzy
    Not sure but try setting a driver in the '<drivers' line in 'vehicles.meta' (see below) as well as in the '<PedModels>' section of 'dispatch.meta' (see previous posts above):

    Example:

    vehicles.meta:

          <drivers>
            <Item>
              <driverName>S_M_Y_Cop_01</driverName>
              <npcName />
            </Item>
          </drivers>
    


  • @a63nt-5m1th Yes... that did the trick...
    Thank you!


Log in to reply
 

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