@KimMinSu1029
- Your 'dispatch.meta' Riot spawns fine for me on 4 Stars (4 peds spawn from it for me in total (2 front, 2 back. See 'GTA_Combat_Tweaks/'combat_tweaks.asi':' section below for more on that)):

-
So, no issue with the 'dispatch.meta' file itself, your issue must be somewhere else 
-
I presume the 'Riot' spawns fine when you spawn it manually yeah? Check that, if not done so already.
-
Syntax check all the 'Riot's '.meta' files & make sure all the nessessary data actually exists (somewhere at least, if not in the files below etc):
By default they are:
handling.meta:
...\Grand Theft Auto V\mods\update\update.rpf\common\data\handling.meta
vehicles.meta:
...\Grand Theft Auto V\mods\update\update.rpf\common\data\levels\gta5\vehicles.meta
carcols.ymt:
...\Grand Theft Auto V\mods\update\update.rpf\x64\data\carcols.ymt
carvariations.ymt:
...\Grand Theft Auto V\mods\update\update.rpf\x64\data\carvariations.ymt
vehiclelayouts.meta: (LAYOUT_RIOT_VAN)
...\Grand Theft Auto V\mods\update\update.rpf\common\data\ai\vehiclelayouts.meta
Easy way to find syntax errors:
If you use 'Edit' (right-click file > 'Edit' (or hit 'Ctrl+Enter')) to open a file using OpenIV, a '[</> XML]' button will appear at the top when you are in the file. Tap that button & OpenIV will check the file for syntax errors & take you to where it thinks the error is, if it finds one.
- Also, maybe test vanilla files in their place temporarily (make backups first obvs), if you've made any edits to any 'Riot' data in them etc.
'vehicles.meta'/drivers:
- My 'vehicles.meta' data for the 'Riot' looks like this (test it out in your game etc, it has 'S_M_Y_SWAT_01' added as driver):
<Item>
<modelName>riot</modelName>
<txdName>riot</txdName>
<handlingId>RIOT</handlingId>
<gameName>RIOT</gameName>
<vehicleMakeName />
<expressionDictName>null</expressionDictName>
<expressionName>null</expressionName>
<animConvRoofDictName>null</animConvRoofDictName>
<animConvRoofName>null</animConvRoofName>
<animConvRoofWindowsAffected />
<ptfxAssetName>null</ptfxAssetName>
<audioNameHash />
<layout>LAYOUT_RIOT_VAN</layout>
<coverBoundOffsets>RIOT_COVER_OFFSET_INFO</coverBoundOffsets>
<explosionInfo>EXPLOSION_INFO_TRUCK</explosionInfo>
<scenarioLayout />
<cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
<aimCameraName>RIOT_AIM_CAMERA</aimCameraName>
<bonnetCameraName>VEHICLE_BONNET_CAMERA_MID</bonnetCameraName>
<povCameraName>DEFAULT_POV_CAMERA_NO_REVERSE</povCameraName>
<FirstPersonDriveByIKOffset x="0.000000" y="0.000000" z="-0.040000" />
<FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonProjectileDriveByIKOffset x="0.130000" y="0.003000" z="-0.045000" />
<FirstPersonProjectileDriveByPassengerIKOffset x="-0.108000" y="-0.053000" z="-0.075000" />
<FirstPersonProjectileDriveByRearLeftIKOffset x="0.118000" y="0.025000" z="-0.123000" />
<FirstPersonProjectileDriveByRearRightIKOffset x="0.118000" y="0.025000" z="-0.123000" />
<FirstPersonDriveByLeftPassengerIKOffset x="-0.015000" y="0.015000" z="-0.080000" />
<FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByRightRearPassengerIKOffset x="-0.015000" y="0.015000" z="-0.080000" />
<FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonMobilePhoneOffset x="0.155000" y="0.333000" z="0.555000" />
<FirstPersonPassengerMobilePhoneOffset x="0.169000" y="0.306000" z="0.423000" />
<FirstPersonMobilePhoneSeatIKOffset>
<Item>
<Offset x="0.281000" y="0.491000" z="0.506000" />
<SeatIndex value="2" />
</Item>
<Item>
<Offset x="0.156000" y="0.533000" z="0.506000" />
<SeatIndex value="3" />
</Item>
</FirstPersonMobilePhoneSeatIKOffset>
<PovCameraOffset x="0.000000" y="-0.080000" z="0.680000" />
<PovCameraVerticalAdjustmentForRollCage value="0.000000" />
<PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
<PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.000000" />
<vfxInfoName>VFXVEHICLEINFO_TRUCK_HIDDEN_EXHAUST</vfxInfoName>
<shouldUseCinematicViewMode value="true" />
<shouldCameraTransitionOnClimbUpDown value="false" />
<shouldCameraIgnoreExiting value="false" />
<AllowPretendOccupants value="true" />
<AllowJoyriding value="false" />
<AllowSundayDriving value="false" />
<AllowBodyColorMapping value="true" />
<wheelScale value="0.324000" />
<wheelScaleRear value="0.324000" />
<dirtLevelMin value="0.000000" />
<dirtLevelMax value="1.000000" />
<envEffScaleMin value="0.000000" />
<envEffScaleMax value="1.000000" />
<envEffScaleMin2 value="0.000000" />
<envEffScaleMax2 value="1.000000" />
<damageMapScale value="0.100000" />
<damageOffsetScale value="1.000000" />
<diffuseTint value="0x00FFFFFF" />
<steerWheelMult value="1.000000" />
<HDTextureDist value="5.000000" />
<lodDistances content="float_array">
120.000000
200.000000
300.000000
400.000000
500.000000
550.000000
</lodDistances>
<minSeatHeight value="1.185" />
<identicalModelSpawnDistance value="20" />
<maxNumOfSameColor value="10" />
<defaultBodyHealth value="2500.000000" />
<pretendOccupantsScale value="1.000000" />
<visibleSpawnDistScale value="1.000000" />
<trackerPathWidth value="2.000000" />
<weaponForceMult value="1.000000" />
<frequency value="100" />
<swankness>SWANKNESS_1</swankness>
<maxNum value="999" />
<flags>FLAG_BIG FLAG_SPORTS FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_BOOT FLAG_AVOID_TURNS FLAG_EXTRAS_STRONG FLAG_EXTRAS_ALL FLAG_PEDS_CAN_STAND_ON_TOP FLAG_DAMPEN_STICKBOMB_DAMAGE FLAG_DONT_SPAWN_IN_CARGEN FLAG_BLOCK_FROM_ATTRACTOR_SCENARIO FLAG_HAS_BULLETPROOF_GLASS</flags>
<type>VEHICLE_TYPE_CAR</type>
<plateType>VPT_NONE</plateType>
<dashboardType>VDT_TRUCK</dashboardType>
<vehicleClass>VC_EMERGENCY</vehicleClass>
<wheelType>VWT_SPORT</wheelType>
<trailers />
<additionalTrailers />
<drivers>
<Item>
<driverName>S_M_Y_SWAT_01</driverName>
<npcName />
</Item>
</drivers>
<extraIncludes />
<doorsWithCollisionWhenClosed />
<driveableDoors />
<bumpersNeedToCollideWithMap value="false" />
<needsRopeTexture value="false" />
<requiredExtras />
<rewards>
<Item>REWARD_ARMOUR</Item>
</rewards>
<cinematicPartCamera>
<Item>WHEEL_FRONT_RIGHT_CAMERA</Item>
<Item>WHEEL_FRONT_LEFT_CAMERA</Item>
<Item>WHEEL_REAR_RIGHT_CAMERA</Item>
<Item>WHEEL_REAR_LEFT_CAMERA</Item>
</cinematicPartCamera>
<NmBraceOverrideSet>Truck</NmBraceOverrideSet>
<buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
<buoyancySphereSizeScale value="1.000000" />
<pOverrideRagdollThreshold type="NULL" />
<firstPersonDrivebyData>
<Item>VAN_RIOT_FRONT_LEFT</Item>
<Item>VAN_BOXVILLE_FRONT_RIGHT</Item>
<Item>VAN_STOCKADE_REAR_LEFT</Item>
<Item>VAN_STOCKADE_REAR_RIGHT</Item>
</firstPersonDrivebyData>
</Item>
GTA_Combat_Tweaks/'combat_tweaks.asi':
- Also, I do still have the previously mentioned combat_tweaks.asi installed. Some parts of it do work for me, so I kept it & maybe it has magically all started working since I tested it last, years ago
. That's likely why I have 4 peds spawning. ie the 'FourManSwatCars = 1' setting is now working for me
(Note: 'FourManSwatCars = 1' doesn't apply to peds hanging on the sides/runnerboards of the vehicle, just peds inside vehicle)
- Unlikely to fix your issue on it's own, but test out GTA_Combat_Tweaks if you're interested in 4 peds spawning/ some new dispatch/other functionality etc (see options in 'combat_tweaks.ini' below).
My 'combat_tweaks.ini' is set up like this:
[Boat Weapons]
Enabled = 1
; Allows boats to use mounted weapons.
[Submarine Weapons]
Enabled = 1
; Enables the submarine weapons module
SubWeaponsAutoSwitch = 1
; Makes it so that an armed submarine will automatically switch between underwater weapons and surface weapons when it surfaces.
EnableDaytimeSearchlights = 1
; Makes it so that a submarine with a searchlight will shine it at all hours, not just at night
EnableAiWeaponUse = 0
; Broken, do not enable. WIP.
[Miscellaneous Tweaks]
EnableCopArrestsAboveOneStar = 0
; Enables Police to bust above 1 star. Metafile edits required. (Combattasks.ymt (Hostility Levels) & Combatbehaviours.meta (BF_CanBust flag for Swat Combat Behaviours).
DisableCopSixthSense = 0
; Last known position drags at a maximum distance 120m away from the player. Vanilla is snapped ontop of the player. (NOT RECOMENDED TO ENABLE, unless spawn distancing has been increased. Police spawn around LKP, not the player!)
[Wanted Radius]
Enabled = 0
; Enables GTA IV styled search perimeters. Can be customized through dispatch.meta. (DO NOT DISABLE USING DTAR, as it heavily relies on calculating difficulty based on your last known position!)
FlashGrayWhenNotSeen = 1
; When cops are looking for you, the wanted radius will flash gray instead of red/blue.
OutOfSightFlashRate = 1500
; How fast the search perimeter flashes in mili-seconds.
[Gas Mask Peds]
Enabled = 0
; Enables special handling of smokeproof peds
IgnoreSmokeClouds = 1
; Smokeproof peds will not react to clouds of tear gas
SmokeExplosionVisualRangeOverride = 10.0625
; In update.rpf:x64/data/metadata/explosion.ymt, the value of shockingEventVisualRangeOverride for the smoke explosions.
; Default is 10, but makes sense to make a subtle change so the script can ID smoke explosions. Hopefully will be removed
; in the future.
[Dispatch Tuning]
Enabled = 1
; Makes various tweaks to law enforcement dispatch
DisablePoliceAutomobileFlagRequirement = 1
; Removes the requirement for dispatched police cars and boats to have FLAG_LAW_ENFORCEMENT.
RemoveSwatAutomobileRestriction = 1
; Enables use of any vehicle in DT_SwatAutomobile. By default, any vehicle except NOOSEVAN and CRUSADER will have
; the driver and 2 peds hanging off the sides (in seats 7 and 8).
DisableSwatStraphangers = 2
; 0: All SWAT vehicles but CRUSADER and NOOSEVAN have peds hanging off the side.
; 1: Only FBI2 and SHERIFF2 have peds hanging off the side; all other vehicles have peds sitting inside.
; 2: No vehicles have peds hanging off the side; SWAT always responds sitting down inside the vehicle.
FourManSwatCars = 1
; Enables 4 SWAT officers in cars. Does not apply to vehicles with cops hanging off the side.
DisableForcedAmbientCopLoadout = 1
; Cops will use their assigned loadout as defined in pedpersonality.meta instead of being forced to loadout_cop.
RandomizeVehicleOccupants = 0
; Experimental, may hurt performance. Ambient vehicles will randomly choose from all possible occupants in vehicles.meta
; instead of taking the first occupant.
Dispatch 'Ghost' Fix 1.1.0.0:
- Additionally, I have Dispatch 'Ghost' Fix 1.1.0.0 installed also (you only really need that to fix ghost/driverless dispatch vehicles/no ped spawn with dispatch vehicles due to 'dispatch.meta' having too many models (especially peds) in it. Usually, you would have noticed the driverless dispatch vehicles if that was the issue, but try it out maybe etc).