Log in to reply
 

[Tutorial] | Vehicles.meta



  • If anyone can help I am looking for where can add more seats and how to adjust them thanks


  • Banned

    @dodgeboy121 said in [Tutorial] | Vehicles.meta:

    ALLOWJOYRIDING

    Hey Dude! WHAT'S THE CHANCES! I find you here! :grinning:



  • haha yeah bud i really enjoy tinkering with handling lines, and my endeavors in that lead me to this post, i havent published anything yet though



  • Is it possible to include only the vehicle you want in a vehicles.meta? We have a bunch of custom models in our server, and every time we load a new one we override our previous vehicles.meta with the new one.

    Is it possible to structure the per vehicle vehicles.meta, carcol.meta and carvariations.meta to only include the data specific to the car we are trying to load? Haven't been able to find any examples of this.



  • exactly what does 1.54. WEAPONFORCEMULT VALUE do ?



  • @dodgeboy121 For everyone who wants to know:

    ALLOWJOYRIDING allows the car to be driven recklessly. If you set it to false, it will drive professionally. Like the Bus and Ambulance.



  • Anybody know how to make a fx Sanchez to a police vehicle in "vehicles.meta"



  • @LauiiDK

    '<flags>' line in 'vehicles.meta'

    Give it the 'FLAG_LAW_ENFORCEMENT' (so it can spawn as dispatch. Also causes peds to respect it & get out of the way/not barge past knocking it over if vehicle siren is ON. Leave siren running if leave vehicle or peds will start barging past) & 'FLAG_EMERGENCY_SERVICE' (if you have it set to respond to ped emergencies ('<EmergencyResponses>' bottom of dispatch)).
    You can safely set both flags, there may be other effects/advantages of 'FLAG_EMERGENCY_SERVICE' I'm not aware of.



  • I remember there was a flag or something that makes the vehicle headlights blueish. It had something like halogen in somewhere of it's name but I can't find it anymore :/



  • How to edit the vehicle's HP ?



  • @Karabiner98 said in [Tutorial] | Vehicles.meta:

    How to edit the vehicle's HP ?

    A lot of the details on that in this thread.



  • Can someone tell me what is wrong with this dlc ??, everyone has told me to copy the data of the car I use as a replacement, I do that but I can't make this shit work I'm sick, the same thing always happens to me.
    ps: the car is not included

    https://mega.nz/file/b8NUBD6Q#vHlD7r8U0DWB--lHWsU8yrVzeG9kzeb7uYw8Q2H9P6o



  • I'm adding in the Street Deluxo mod, however the layout is set to:
    <layout>LAYOUT_LOW_DELUXO</layout>
    This causes my game to crash whenever I try and enter the vehicle.

    Does this mean we can only use layouts from the base game or are DLC vehicle layouts allowed?



  • Can I use quote tags in vehicles.meta and american.gxt?



  • Sorry to ask.. Im still newbie here..
    Does the vehicle.meta(mods file) gonna overwrite my original vehicle.meta file ? I mean,if I have mod the original vehicle.meta file before,and then I replace the vechile.meta(mods file which i just download),does all my mod inside the original vehicle.meta gonna gone ?



  • @geforce3552
    Yes, if you overwrite any file, any previous edits will be gone.

    If you want to keep your edits, you'll want to open up your original edited 'vehicles.meta' & copy any data you want to keep into the new one & then install that.

    However, if you have made edits to the game folder version (ie original vanilla) & you then install the same file into the 'mods' folder, that will not overtly overwrite the data (ie old data will still exist), but the game will load the data in the file from the 'mods' folder instead, so your old edits will not appear in-game.
    To keep your old edits in this case is the same as above, manually copy the data you want to keep over into the 'mods' folder version of the file.



  • @a63nt-5m1th
    Im sorry but its little bit confusing,how do I know which file I need to copy and not, because inside the .meta file(original) and (mod) are almost same and too many lines.



  • @geforce3552
    Use something like https://www.diffchecker.com/ to compare two different files :thumbsup:

    First, you want to compare the vanilla 'vehicles.meta' to your edited one so that you can identify which vehicles you have edited previously (make a list of them somewhere if need be). Then you want to copy the data for those vehicles from your old edited file over into the new file you downloaded, overwriting the same vehicles & replacing their data.

    Use a more advanced text editor like Notepad++ for your editing (if you don't already). It will be much easier to read & see where sections of data in the file start & end (click on line & it will highlight start & end of that block of data highlighted purple with a red vertical line (on right of page) connecting them (see pic))

    purple highlighting & red line

    For vehicles in 'vehicles.meta' you want to click on the '<Item>'' just above the '<modelName>' line:
    Example:

        <Item> <!-- This '<Item>' here -->
          <modelName>ninef</modelName>
          <txdName>ninef</txdName>
          <handlingId>NINEF</handlingId>
          <gameName>NINEF</gameName>
          <vehicleMakeName>OBEY</vehicleMakeName>
    ...
    

    Notepad++ will then highlight (purple highlight & red line etc) the entire block of data for that vehicle.
    Scroll down until you see a purple highlighted '</Item>' line & everything inbetween those highlighted lines is the data for that vehicle:

    Example (ninef):

        <Item> <!-- Copy from here... -->
          <modelName>ninef</modelName>
          <txdName>ninef</txdName>
          <handlingId>NINEF</handlingId>
          <gameName>NINEF</gameName>
          <vehicleMakeName>OBEY</vehicleMakeName>
          <expressionDictName>null</expressionDictName>
          <expressionName>null</expressionName>
          <animConvRoofDictName>null</animConvRoofDictName>
          <animConvRoofName>null</animConvRoofName>
          <animConvRoofWindowsAffected />
          <ptfxAssetName>null</ptfxAssetName>
          <audioNameHash />
          <layout>LAYOUT_LOW</layout>
          <coverBoundOffsets>NINEF_COVER_OFFSET_INFO</coverBoundOffsets>
          <explosionInfo>EXPLOSION_INFO_DEFAULT</explosionInfo>
          <scenarioLayout />
          <cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
          <aimCameraName>DEFAULT_THIRD_PERSON_VEHICLE_AIM_CAMERA</aimCameraName>
          <bonnetCameraName>VEHICLE_BONNET_CAMERA_MID_NEAR</bonnetCameraName>
          <povCameraName>REDUCED_NEAR_CLIP_POV_CAMERA</povCameraName>
          <FirstPersonDriveByIKOffset x="0.000000" y="-0.055000" z="-0.050000" />
          <FirstPersonDriveByUnarmedIKOffset x="0.000000" y="-0.100000" z="0.000000" />
    	  <FirstPersonProjectileDriveByIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonProjectileDriveByPassengerIKOffset x="0.000000" y="-0.045000" z="0.015000" />
    	  <FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="-0.055000" z="-0.020000" />
    	  <FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
    	  <FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="-0.100000" z="0.000000" />
    	  <FirstPersonMobilePhoneOffset x="0.130000" y="0.211000" z="0.580000" />
    	  <FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.156000" z="0.463000" />      
          <PovCameraOffset x="0.000000" y="-0.200000" z="0.695000" />
          <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_CAR_GENERIC</vfxInfoName>
          <shouldUseCinematicViewMode value="true" />
          <shouldCameraTransitionOnClimbUpDown value="false" />
          <shouldCameraIgnoreExiting value="false" />
          <AllowPretendOccupants value="true" />
          <AllowJoyriding value="true" />
          <AllowSundayDriving value="true" />
          <AllowBodyColorMapping value="true" />
          <wheelScale value="0.268000" />
          <wheelScaleRear value="0.268000" />
          <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.600000" />
          <damageOffsetScale value="1.000000" />
          <diffuseTint value="0x00FFFFFF" />
          <steerWheelMult value="1.000000" />
          <HDTextureDist value="5.000000" />
          <lodDistances content="float_array">
            15.000000
            30.000000
            60.000000	
            120.000000	
            500.000000	
            500.000000
          </lodDistances>
          <minSeatHeight value="0.812" />
          <identicalModelSpawnDistance value="20" />
          <maxNumOfSameColor value="1" />
          <defaultBodyHealth value="1500.000000" />
          <pretendOccupantsScale value="1.000000" />
          <visibleSpawnDistScale value="1.000000" />
          <trackerPathWidth value="2.000000" />
          <weaponForceMult value="1.000000" />
          <frequency value="30" />
          <swankness>SWANKNESS_4</swankness>
          <maxNum value="2" />
          <flags>FLAG_SPORTS FLAG_BOOT_IN_FRONT FLAG_SPAWN_ON_TRAILER FLAG_RICH_CAR FLAG_NO_BROKEN_DOWN_SCENARIO FLAG_HAS_INTERIOR_EXTRAS</flags>
          <type>VEHICLE_TYPE_CAR</type>
          <plateType>VPT_BACK_PLATES</plateType>
    	  <dashboardType>VDT_SUPERGT</dashboardType>
          <vehicleClass>VC_SPORT</vehicleClass>
          <wheelType>VWT_HIEND</wheelType>
          <trailers />
          <additionalTrailers />
          <drivers />
          <extraIncludes />
          <doorsWithCollisionWhenClosed />
          <driveableDoors />
          <bumpersNeedToCollideWithMap value="false" />
          <needsRopeTexture value="false" />
          <requiredExtras />
          <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 />
          <buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
          <buoyancySphereSizeScale value="1.000000" />
          <pOverrideRagdollThreshold type="NULL" />
    	  <firstPersonDrivebyData>
            <Item>LOW_RAPIDGT_FRONT_LEFT</Item>
            <Item>LOW_RAPIDGT_FRONT_RIGHT</Item>
          </firstPersonDrivebyData>
        </Item> <!-- ...to here -->
    

    Find (Ctrl+F) the same vehicle in your downloaded 'vehicles.meta', select all of it's data in the same way as above & then paste your older edited vehicle's data over it to replace it.

    Also, you want to be sure to copy the lines in the '<txdRelationships>' section of 'vehicles.meta' that relate to any of the vehicles you are copying to the new file.

    Example (ninef):

        <Item> <!-- Copy from here... -->
          <parent>vehicles_supergt_interior</parent>
          <child>ninef</child>
        </Item> <!-- ...to here -->
    

    Do that for each of the vehicles you have edited & you should be good. :thumbsup:

    Note:
    Always make backups of everything before you edit it. Then you are always able to return to a previous working copy if need be.


Log in to reply
 

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