Typical issues with FiveM (in my opinion)

Still i’m searching any way how to stream vehicles.meta for default vehicle models.
It works if i paste vehicles.meta (client-side) into: FiveM.app\citizen\common\data\levels\gta5

Client side evidence: Livery test - (overwrite vehicles.meta), client-side - Album on Imgur

From server-side i have no idea but today i founded interesting information at FiveM Documentation website
avaliable here: Resource manifest - Cfx.re Docs
Exactly this:


After this i got error during join into server.
screenshot:

For what purpose i want to edit vehicles.meta for default vehicle from game? As i wrote before ‘add-on’ vehicles can’t be spawn on traffic so i replaced vanilla models.

@ScreenT I want to edit some values for vanilla vehicles (not add-on). After a lot of tries it seems we can’t stream vehicles.meta for vanilla car models. It works for add-on vehicles only.

@ScreenT So why i want to edit vanilla vehicles? It will be easier to add new vehicle as add-on version without collision code with existing vehicles in game.

@ScreenT Answer is simple. I want to add these vehicles into traffic but add-on vehicles don’t spawn on traffic, just vanilla vehicles can be. I replaced over 300 vehicles in my server because add-on version can’t spawn on traffic.

So i added this vehicle.meta into server-side. Code from vehicle.meta at below:

<Item>
      <modelName>mule</modelName>
      <txdName>mule</txdName>
      <handlingId>MULE</handlingId>
      <gameName>MULE</gameName>
      <vehicleMakeName>MAIBATSU</vehicleMakeName>
      <expressionDictName>null</expressionDictName>
      <expressionName>null</expressionName>
      <animConvRoofDictName>null</animConvRoofDictName>
      <animConvRoofName>null</animConvRoofName>
      <animConvRoofWindowsAffected />
      <ptfxAssetName>null</ptfxAssetName>
      <audioNameHash />
      <layout>LAYOUT_VAN_MULE</layout>
      <coverBoundOffsets>MULE_COVER_OFFSET_INFO</coverBoundOffsets>
      <explosionInfo>EXPLOSION_INFO_TRUCK</explosionInfo>
      <scenarioLayout />
      <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
      <aimCameraName>BOX_VEHICLE_AIM_CAMERA</aimCameraName>
      <bonnetCameraName>DEFAULT_VEHICLE_BONNET_CAMERA</bonnetCameraName>
      <povCameraName>DEFAULT_POV_CAMERA_NO_REVERSE_LOOKAROUND_LOW</povCameraName>
      <FirstPersonDriveByIKOffset x="0.000000" y="-0.020000" z="0.030000" />
      <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonProjectileDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonProjectileDriveByRearLeftIKOffset x="0.095000" y="0.025000" z="-0.075000" />
	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.095000" y="0.025000" z="-0.075000" />
	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.015000" z="-0.080000" />
	  <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
	  <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" 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.123000" y="0.219000" z="0.453000" />
      <FirstPersonPassengerMobilePhoneOffset x="0.171000" y="0.321000" z="0.433000" />
      <FirstPersonMobilePhoneSeatIKOffset>
		<Item>
			<Offset x="0.156000" y="0.533000" z="0.538000" />
			<SeatIndex value="2" />
		</Item>
		<Item>
			<Offset x="0.156000" y="0.533000" z="0.538000" />
			<SeatIndex value="3" />
		</Item>
        <Item>
			<Offset x="0.156000" y="0.533000" z="0.538000" />
			<SeatIndex value="4" />
		</Item>
		<Item>
			<Offset x="0.156000" y="0.533000" z="0.538000" />
			<SeatIndex value="5" />
		</Item>
      </FirstPersonMobilePhoneSeatIKOffset>
      <PovCameraOffset x="-0.025000" y="-0.075000" z="0.535000" />
      <PovCameraVerticalAdjustmentForRollCage value="0.000000" />
      <PovPassengerCameraOffset x="0.000000" y="0.040000" z="0.130000" />
      <PovRearPassengerCameraOffset x="0.000000" y="0.040000" z="0.130000" />
      <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.297000" />
      <wheelScaleRear value="0.297000" />
      <dirtLevelMin value="0.300000" />
      <dirtLevelMax value="1.000000" />
      <envEffScaleMin value="0.000000" />
      <envEffScaleMax value="1.000000" />
      <envEffScaleMin2 value="0.000000" />
      <envEffScaleMax2 value="1.000000" />
      <damageMapScale value="0.500000" />
      <damageOffsetScale value="0.500000" />
      <diffuseTint value="0x00FFFFFF" />
      <steerWheelMult value="1.000000" />
      <HDTextureDist value="5.000000" />
      <lodDistances content="float_array">
        15.000000	
        40.000000	
        80.000000	
        160.000000	
        750.000000	
        750.000000
      </lodDistances>
      <minSeatHeight value="1.03" />
      <identicalModelSpawnDistance value="80" />
      <maxNumOfSameColor value="10" />
      <defaultBodyHealth value="1000.000000" />
      <pretendOccupantsScale value="1.000000" />
      <visibleSpawnDistScale value="1.000000" />
      <trackerPathWidth value="2.000000" />
      <weaponForceMult value="1.000000" />
      <frequency value="10" />
      <swankness>SWANKNESS_1</swankness>
      <maxNum value="5" />
      <flags>FLAG_HAS_LIVERY FLAG_BIG FLAG_NO_BOOT FLAG_AVOID_TURNS FLAG_DELIVERY FLAG_EXTRAS_REQUIRE FLAG_PEDS_CAN_STAND_ON_TOP FLAG_BLOCK_FROM_ATTRACTOR_SCENARIO FLAG_INTERIOR_BLOCKED_BY_BOOT</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
	  <dashboardType>VDT_TRUCK</dashboardType>
      <vehicleClass>VC_COMMERCIAL</vehicleClass>
      <wheelType>VWT_SPORT</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers />
      <extraIncludes />
      <doorsWithCollisionWhenClosed>
        <Item>VEH_EXT_DOOR_DSIDE_R</Item>
        <Item>VEH_EXT_DOOR_PSIDE_R</Item>
      </doorsWithCollisionWhenClosed>
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="true" />
      <needsRopeTexture value="false" />
      <requiredExtras />
      <rewards />
      <cinematicPartCamera>
        <Item>WHEEL_WIDE_REAR_RIGHT_CAMERA</Item>
        <Item>WHEEL_WIDE_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_MULE_FRONT_LEFT</Item>
        <Item>VAN_BENSON_FRONT_RIGHT</Item>
        <Item>VAN_MULE_REAR_LEFT</Item>
        <Item>VAN_MULE_REAR_RIGHT</Item>
      </firstPersonDrivebyData>
    </Item>

At above code i added between line new flag called: “FLAG_HAS_LIVERY” because i added new liveries and would be nice if my traffic will respawn with new liveries.

Probably the reference “replace_level_meta” refers to something else. I don’t know it’s my experimental way how to overwrite vanilla code in vehicles.meta

Server side evidences:


and

and

Summary it seems the reference “replace_level_meta” doesn’t work or i did something wrong. Anyway overwriting vehicles.meta for existing default vehicles from game streamed from server side doesn’t work.

It was my experimental modding please be nice :slight_smile:

Thanks you for read.
Regards, Ordenko