Need the files now? The Vehicles.meta Generator writes vehicles.meta, carvariations.meta and the manifest from one spawn name. Open the Vehicles.meta Generator
When you need this
You have a model (.yft, _hi.yft, .ytd) but no meta files, or the ones that came with the mod are for single-player and reference things FiveM does not have. The usual case is a replace mod you want as its own vehicle: converting a replace car to an add-on covers the renaming that goes with these files. (Field-by-field background is in the wiki entry for vehicles.meta.) The generator builds a clean add-on set that the Inspector will pass.
Step 1: Set the spawn name
Open the Vehicles.meta Generator. Type the spawn name exactly as the model file is named, lowercase, no spaces: if the file is bmwm4.yft, the spawn name is bmwm4. It must not be a name the base game already uses; the GTA 5 vehicle spawn names list shows which are taken. With "Auto-fill" ticked the texture name, handling ID and GXT key follow automatically.
Step 2: Fill in the identity
- txdName: the
.ytdfile name. Usually the same as the spawn name. - handlingId: must equal the
<handlingName>in yourhandling.meta. Uppercase by convention. A mismatch here is one of the seven causes of an invisible car. - gameName: the key used for the in-game display name, 11 characters max.
- Display name: what players see. It goes into
vehicle_names.luavia AddTextEntry, which is why the name will not show as NULL. Why add-on car names show NULL explains the mechanism and what to check when a garage still shows the wrong name. - Make: optional manufacturer key and display name.
Step 3: Classify the car
Pick a body template first: each one mirrors a stock vehicle of that shape, and its seat layout, cameras and other fixed blocks are copied from that vehicle, so there is no layout to choose by hand. Then set the vehicle class (affects AI behaviour and garage sorting) and an engine sound borrowed from a vanilla car (custom engine sounds covers sound packs), wheel type, dashboard and plate type. Swankness 5 for exotics, 1 for beaters.
Step 4: Choose flags
Sensible defaults are pre-ticked: sports handling, rich car, actual headlight bones, and the two flags that stop the car from spawning as ambient traffic. Add FLAG_HAS_LIVERY if the model ships liveries, FLAG_IS_ELECTRIC for EVs, FLAG_LAW_ENFORCEMENT for police units (the lighting side is in installing ELS police cars).
Step 5: Set colour combos
Each combo is primary, secondary, pearlescent and wheel colour using real GTA colour indices from the palette. Four combos is normal; add up to eight. Leave the mod kit as 0_default_modkit unless you ship a carcols.meta.
Step 6: Download the four files
Use "All 4" to download vehicles.meta, carvariations.meta, vehicle_names.lua and fxmanifest.lua. Arrange them like this and create handling.meta with the Handling Editor (mastering handling.meta explains the values):
bmwm4/
├── fxmanifest.lua
├── vehicle_names.lua
├── data/
│ ├── vehicles.meta
│ ├── carvariations.meta
│ └── handling.meta
└── stream/
├── bmwm4.yft
├── bmwm4_hi.yft
└── bmwm4.ytdStep 7: Verify
Zip the folder and run it through the Resource Inspector. A generated set with matching file names should score 100. Then ensure it and spawn bmwm4. If the game answers with an error instead, work through fixing 'Invalid Model'.
Converting an add-on that already ships its own meta files? You do not need the generator; see converting add-on cars.
Have a gta5-mods.com link ready?
Paste it into the converter and download a FiveM resource with the stream folder, meta files and fxmanifest.lua in place.
- 3 conversions free, no account needed
- 2 more free if you leave an email
- After that: $15 once for unlimited conversions and the Pro tools. No subscription, 14-day refund policy