How to Add Addon Cars to a FiveM Server
How to add cars to a FiveM server: stream folder, vehicles.meta and data_file lines in fxmanifest.lua, ensure, a spawn test, pack merging and Enhanced.

- Applies to
- FiveM Legacy servers (fxmanifest.lua resources, FXServer source as of 2026-11-20), with notes for FiveM for GTAV Enhanced (stream_enhanced) and spawn commands for txAdmin, Qbox, ESX Legacy, QBCore and vMenu
- Last verified
On this page
- Direct Answer
- How addon cars work on a FiveM server
- Addon vs replace in FiveM
- What is inside an addon car download
- How to install custom cars on a FiveM server, step by step
- vehicles.meta, data_file and fxmanifest.lua: what each line does
- Merge several car packs into one resource
- Addon cars on FiveM for GTAV Enhanced
- Troubleshooting
- Next Steps
Direct Answer
To add cars to a FiveM server, package each car as a resource. Create a folder under resources, put the car’s .yft and .ytd files in a stream subfolder and its .meta files beside an fxmanifest.lua. The manifest starts with fx_version 'cerulean' and game 'gta5', lists the .meta files under files and declares each with a data_file line: VEHICLE_METADATA_FILE for vehicles.meta, HANDLING_FILE for handling.meta, CARCOLS_FILE for carcols.meta, VEHICLE_VARIATION_FILE for carvariations.meta. Add ensure plus the folder name to server.cfg, restart the server, then spawn the car by its model name.
That is the FiveM Legacy layout. FiveM for GTAV Enhanced reads a stream_enhanced folder first and needs converted model files.
How addon cars work on a FiveM server
A FiveM server runs on resources. The Cfx.re docs define a resource as “a collection of files - such as client scripts, server scripts, and streaming assets - that can be started, stopped and restarted at any time”. A car resource needs no scripts. It has two halves:
- Streamed assets. The car’s model and texture files (
.yft,.ytd). FXServer scans the resource’sstreamfolder on its own when the resource starts, so these files are not listed in the manifest. - Data files. The
.metafiles that describe the vehicle to the game. The docs define a data file as “an entry in the resource manifest that references a file to load in the game extra content mounting system”.
Each .meta file needs two manifest entries. files adds it to the resource package, “to be downloaded by clients upon loading the resource”. data_file then registers it with the game under a type name.
Players install nothing by hand: their client downloads the resource from your server.
The facts below come from the Cfx.re docs and the FiveM source code, plus community threads on the Cfx.re forum where the text says so. All of them were read on November 20, 2026.
Addon vs replace in FiveM
Car downloads come in two kinds, and a third way to get more cars needs no download at all.
| Replace car | Addon car | Game DLC car | |
|---|---|---|---|
| What it does | Takes the place of an existing game vehicle | Adds a vehicle under its own model name | Enables Rockstar vehicles from a later game update |
| Files you install | The .yft and .ytd files only | The .yft and .ytd files plus .meta files | None |
| Manifest | fx_version and game | fx_version, game, files and one data_file line per .meta file | None: on FiveM Legacy, one sv_enforceGameBuild line in server.cfg |
| Spawn name | The game vehicle’s existing model name | The addon’s own model name | The game’s model name |
Replace. A community tutorial on the Cfx.re forum puts it simply: replace vehicles “only require the vehicle files themselves”. They work because of how FiveM streams files: when a streamed file has the name of an asset the game has already registered, FiveM’s client overrides that asset with yours. If a replace download also ships .meta files, declare them exactly as you would for an addon.
Addon. The same tutorial describes add-on vehicles as the vehicle files “and 1-4 .meta files”. Because an addon has its own model name, it “won’t replace any gta 5 vanilla vehicles”, as another forum how-to says. The official Vehicle Models reference lists game vehicles with their Model Name (asbo for the Asbo, for example), which helps when you are unsure whether a download replaces something.
Game DLC cars. Newer Rockstar vehicles are not addons. They arrive with the game build, and every build includes the content of the builds before it. On FiveM Legacy you select the build with sv_enforceGameBuild; on November 20, 2026 the newest entry in the docs’ build table was 3889 (The Kortz Center Heist). FiveM for GTAV Enhanced supports only that latest build and loads it by default. The sv_enforceGameBuild guide covers that setting.
What is inside an addon car download
| File | What the sources say about it | Where it goes | data_file type |
|---|---|---|---|
.yft and .ytd files | “the vehicle files themselves”, in the forum tutorial’s words | stream folder | None, streamed automatically |
vehicles.meta | Holds the vehicle’s model name, its display label (gameName) and its vehicle type | Resource folder | VEHICLE_METADATA_FILE |
handling.meta | “Handling data XML” | Resource folder | HANDLING_FILE |
carcols.meta | “Vehicle model variation data”; community tutorials edit mod kits here | Resource folder | CARCOLS_FILE |
carvariations.meta | Names the mod kits a car uses, per the same tutorials | Resource folder | VEHICLE_VARIATION_FILE |
vehiclelayouts.meta | Only in some downloads; a long-running forum how-to marks it “Not Required” | Resource folder | VEHICLE_LAYOUTS_FILE |
Not every download has all five .meta files. Use the ones you received and leave the others out of the manifest.
In Rockstar’s own DLC packs these files sit at paths such as common/data/levels/gta5/vehicles.meta, common/data/handling.meta, common/data/carcols.meta, common/data/carvariations.meta and common/data/ai/vehiclelayouts.meta, the examples shown on the Data Files page. A download packed as a dlc.rpf can follow the same layout: one forum reply tells a reader to take vehiclelayouts.meta “from the AI folder in the dlc.rpf file”.
An .rpf archive cannot be streamed as it is. FiveM’s client rejects it with can't register <file>: it's an RPF, these don't belong in stream/ without extracting them first. Open the archive in an RPF tool and extract the files. The official assets manual works with CodeWalker’s RPF Explorer; the forum tutorial names OpenIV.
How to install custom cars on a FiveM server, step by step
The result of the seven steps looks like this, with mycar standing in for your car’s name:
resources/
[cars]/
mycar/
fxmanifest.lua
vehicles.meta
handling.meta
carcols.meta
carvariations.meta
stream/
mycar.yft
mycar_hi.yft
mycar.ytd
Step 1: Create the resource folder
- Open the
resourcesfolder in your server data directory, the folder that also holdsserver.cfg. The docs’ examples for that directory areC:\FXServer\server-dataon Windows and~/FXServer/server-dataon Linux. - Create a category folder named
[cars]if you do not have one. Folders between square brackets are categories that can contain several resource folders. - Create a folder for the car inside it, such as
mycar. You are free to name it as you wish. The folder name is the resource name you will type inserver.cfg.
Step 2: Put the model files in a stream folder
- Create a folder named
streaminsidemycar. - Copy every
.yftand.ytdfile from the download into it. One model is a small set of files: for the game’s own Astron, FiveM’s source listsastron.yft,astron_hi.yftandastron.ytd. - Add the tuning parts too. The tutorial’s author confirms that extra mod files “go into the stream folder with everything else”.
FXServer walks the stream folder recursively, so you may sort files into subfolders.
Step 3: Copy the .meta files
- Copy the
.metafiles intomycar, next to where the manifest will be. - Keep the file names as they are. The manifest in the next step refers to each file by name. A subfolder works as well, because manifest paths are relative to the resource folder.
Step 4: Write fxmanifest.lua
- Create a text file named
fxmanifest.luainmycar. - Paste the manifest below.
- Delete the lines for files you do not have. The forum tutorial’s rule: remove the
filesentry and the matchingdata_fileline “for every .meta file it doesn’t include”.
fx_version 'cerulean'
game 'gta5'
files {
'vehiclelayouts.meta',
'vehicles.meta',
'carvariations.meta',
'handling.meta',
'carcols.meta',
}
data_file 'HANDLING_FILE' 'handling.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta'
data_file 'VEHICLE_METADATA_FILE' 'vehicles.meta'
data_file 'CARCOLS_FILE' 'carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'carvariations.meta'
fx_version 'cerulean' selects the current manifest version, and game 'gta5' marks the resource as running on FiveM. The five data_file lines come from the forum how-tos; the type names match the official Data Files page.
The example car in the tree above has no vehiclelayouts.meta, so its manifest loses the two lines that name that file.
Step 5: Add the resource to server.cfg
- Open
server.cfgand add one line next to your otherensurelines:
ensure mycar
- Or start the whole category.
ensurealso accepts a category name, so a single line starts every car resource inside the folder:
ensure [cars]
ensure starts a resource, or restarts it if it is already running.
Step 6: Start the resource and read the console
- Restart the server, or type
refreshand thenensure mycarin the server console.refreshrescans theresourcesfolder and makes new resources available to start. - Read the start line. A clean start prints
Started resource mycar. With problems it printsStarted resource mycar (1 warning), with the count of warnings. - Fix what the warnings name. The two you will meet with cars:
| Console message | Meaning |
|---|---|
could not find file `handling.meta` (defined in fxmanifest.lua:<line>) | A file named in files does not exist at that path. The message ends with the manifest file and a line number. |
Asset mycar/mycar.ytd uses <size> MiB of physical memory. | The asset uses more than 16 MiB of physical or virtual memory. Above 48 MiB the message adds that oversized assets “can and WILL lead to streaming issues (such as models not loading/rendering)”. |
The size warning is a quality problem with the files themselves. The oversized assets guide explains the thresholds and the fix.
Step 7: Spawn the car by its model name
The spawn name is the car’s model name, not the resource folder name. A reply in the tutorial thread says you “can’t spawn a vehicle with the foldername unless you use the same name as the file”, meaning the .yft and .ytd name in stream. Other community answers point to vehicles.meta: the name sits between the <modelName> tags.
- Join the server as an admin.
- Use the spawn tool your server has. Nothing in the steps above depends on a framework; the spawn command does:
| Server | How to spawn | Who may use it |
|---|---|---|
| Any server with txAdmin | Open the menu with /tx, go to Vehicle and use Spawn; the Spawn vehicle dialog asks for the model name | txAdmin admins with the menu.vehicle permission (“Spawn/Fix Vehicles”) |
| Qbox | /car followed by the model name | group.admin; if the server requires opt-in, run /optin first |
| ESX Legacy | /car followed by the model name | The owner and admin groups by default (Config.CommandPermissions) |
| QBCore | /car followed by the model name | The admin permission |
| vMenu (vMenu Enhanced) | The Vehicle Spawner menu, which detects addon vehicles on its own; start the car’s resource before vMenu’s ensure line in server.cfg | The permission of the car’s vehicle class; spawning by model name also needs vMenu.Enhanced.Menus.VehicleSpawner.SpawnByName |
- Read the answer. When the game does not know the name as a valid vehicle model, txAdmin answers “The vehicle model name ’…’ does not exist!”. In that case go to Troubleshooting below.
On a Qbox, QBCore or ESX server, a car that spawns for an admin is not yet a car that players can own. QBCore’s docs put it bluntly: “If you want to save a vehicle to the database for ownership, it MUST be defined in the shared vehicles table!” Registering the car with your framework and its dealership is covered in the dealership guide.
The name that menus show is a separate matter. vehicles.meta carries a gameName, which the natives reference describes as the model’s “display name/text label”. Older car templates register text for that label in a small client script named vehicle_names.lua, which one forum how-to calls optional. If your download ships that file, keep it in the resource folder and declare it in the manifest with a client_script entry, as that how-to’s manifest does.
vehicles.meta, data_file and fxmanifest.lua: what each line does
The data_file type must be exact
The five type names in the file table earlier on this page come from the Data Files page, the official list. A type has to be spelled exactly as it appears there: for an unknown type the client logs Could not add data_file <file> - invalid type <type>. and skips the file. The same page lists audio types as well (AUDIO_GAMEDATA, AUDIO_SOUNDDATA, AUDIO_SYNTHDATA, AUDIO_WAVEPACK); those belong to the custom engine sounds guide.
Globbing: one line for many files
The manifest reference says data_file “supports globbing in the filename field”, and its own example uses a pattern inside files as well:
files {
'audio/mywaves/stupidcar.awc',
'myvehicles.meta',
'metas/*_handling.meta',
}
data_file 'AUDIO_WAVEPACK' 'audio/mywaves'
data_file 'VEHICLE_METADATA_FILE' 'myvehicles.meta'
data_file 'HANDLING_FILE' 'metas/*_handling.meta'
| Pattern | Matches, per the docs |
|---|---|
*.lua | a.lua, b.lua (non-recursively) |
**/*.lua | dir1/a.lua, dir2/b.lua, dir1/dir2/f.lua |
**/cl_*.lua | dir1/cl_hi.lua, etc. |
In FiveM’s resource code, every file that a data_file pattern matches is added to the load list as its own data file of that type.
Does the order of the data_file lines matter?
Older forum advice says it does, with vehiclelayouts.meta loaded before vehicles.meta to avoid a crash when entering the car. The current client source does part of that work itself. Data files that are queued while the game is still loading are sorted before they load: FiveM moves HANDLING_FILE and VEHICLE_LAYOUTS_FILE entries ahead of every other type and keeps the rest in their original order.
That sort does not cover every case. Once the game has loaded, the same source loads each data file as soon as a resource adds it, so a car resource that you start or restart while players are in the game gets no reordering. Keep the order of the Step 4 manifest, which follows that forum thread: handling and layouts first, then vehicles.meta.
Old downloads with __resource.lua
Many older car downloads, and the forum tutorial itself, use a __resource.lua file with a resource_manifest_version line. The docs mark that line as deprecated (“You should be using fxmanifest.lua and fx_version instead”) and say a __resource.lua produces a deprecation warning in the server console. In FXServer’s source the warning reads mycar has an outdated manifest (__resource.lua instead of fxmanifest.lua), and the resource scan raises it only for a resource that declares a client script. An old car pack without one gets no message at all. Convert it either way: rename the file to fxmanifest.lua, replace the resource_manifest_version line with fx_version 'cerulean' and game 'gta5', and keep every other entry.
Both new lines are needed. FXServer’s start check prints Resource mycar does not specify an `fx_version` in fxmanifest.lua. when the first is missing and Resource mycar does not support the current game (gta5). when the second is, and in both cases it marks the resource as not allowed to start.
You may also see lua54 'yes' in example manifests, including one in the official assets manual. The manifest reference says that setting is deprecated and no longer needed.
Merge several car packs into one resource
There are two ways to tidy up a long list of car resources.
Keep separate resources in one category. Put every car folder inside [cars] and use the single ensure [cars] line. Nothing has to be edited. To reload all cars after a change, run ensure [cars] again. The docs say restart supports category names too, but in the current FXServer source only start, stop and ensure handle a category name; restart looks the name up as a single resource.
Build one resource for many cars. This follows from the rules above:
- Create one resource folder, for example
carpack, with astreamfolder and adatafolder. - Give each car a subfolder in both, such as
stream/car_oneanddata/car_one. The recursivestreamscan picks up the subfolders. - Keep file names unique. FXServer registers each streamed file under its bare file name, without the folder, so one resource cannot hold two different files with the same name.
- Declare the metas with patterns. This manifest is adapted from a how-to on the Cfx.re forum and uses the
**/pattern from the docs’ globbing table:
fx_version 'cerulean'
game 'gta5'
files {
'data/**/*.meta',
}
data_file 'HANDLING_FILE' 'data/**/handling*.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'data/**/vehiclelayouts*.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/**/vehicles*.meta'
data_file 'CARCOLS_FILE' 'data/**/carcols*.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/**/carvariations*.meta'
A pattern that matches no file adds nothing, so the VEHICLE_LAYOUTS_FILE line can stay even when no car in the pack ships that file.
The tutorial’s author prefers a different route: combining the .meta files into one file per type, the way the base game keeps “all of the vehicles.metas in one file, handling.metas in one file”.
None of the official pages used for this guide states a performance effect of merging, and forum opinions on it differ. Treat merging as housekeeping.
Addon cars on FiveM for GTAV Enhanced
FiveM for GTAV Enhanced has been in early access since July 21, 2026. For car resources, the official What’s Changed page and the Alchemist docs describe these differences:
| Topic | FiveM Legacy | FiveM for GTAV Enhanced |
|---|---|---|
| Model folder | stream, the folder that FXServer’s stream scan reads | stream_enhanced when present; otherwise stream, which still works but is deprecated |
| Asset generation | Gen8 | Gen9 |
| Game build | Chosen with sv_enforceGameBuild | Only the latest build (The Kortz Center Heist), loaded by default |
| Manifest | files and data_file | No change listed on the What’s Changed page |
- Convert the model files. Alchemist is the official tool that converts assets “originally made for GTAV Legacy (Gen8) to be compatible with GTAV Enhanced (Gen9)”. It supports YDR, YTD, YFT, YPT and YDD files, which covers a car’s
.yftand.ytd, and it requires Windows 11. - Serve both platforms from one resource. The docs’ advice is to “place Gen8 assets in stream and Gen9 assets in stream_enhanced”.
- Protected packs. The What’s Changed page lists Asset Escrow as “Not implemented yet” on Enhanced. Alchemist’s GUI stops when it hits an escrowed asset, while its CLI skips such assets and notes them in its report.
The full conversion walkthrough is in the Alchemist guide.
Troubleshooting
“Couldn’t find resource mycar” in the server console
FXServer prints Couldn't find resource <name>. when ensure names a resource it has not found. Check three things:
- The folder name matches the
ensureline exactly. - The folder sits in
resources, directly or inside a bracketed category. - The folder contains
fxmanifest.lua. Without a manifest a folder is not parsed as a resource, and the docs show the warning “does not have a resource manifest (fxmanifest.lua)”.
If you added the folder while the server was running, run refresh first.
With ensure [cars] the message reads Couldn't find resource category [cars]. instead: FXServer found no resource under a folder with that name, so check the spelling and the brackets.
The addon car does not spawn, or the model “does not exist”
Work through the usual causes in this order:
- The name. Spawn by model name, not by folder name.
- The
vehicles.metaentry. The file must be listed infilesand declared asVEHICLE_METADATA_FILE. A wrong path shows up as the server’scould not find filewarning. - The type spelling. A typo produces the client’s
invalid typemessage from the section above. - The model files. They must be loose files in
stream, not inside an.rpf.
Invisible cars and wrong names in menus are covered in the addon car not spawning guide.
The server warns that an asset “uses … MiB of physical memory”
That is FXServer’s size check from Step 6. Old tutorials state a hard limit instead: the forum tutorial’s author writes “Max file size for FiveM is 16mb”. The server code measures the memory an asset uses, not the size of the file on disk, and this check only warns: the resource still starts. Fix the files with the oversized assets guide. If textures across the map stop loading once many cars are installed, continue with the texture loss guide.
The game crashes when you enter the addon car
Community answers on the Cfx.re forum point to vehicle layouts. One reply to this exact report says to take vehiclelayouts.meta from the download’s dlc.rpf and make sure it is included in the manifest. Add the file to files and declare it as VEHICLE_LAYOUTS_FILE.
Sirens, lights or tuning parts break after you add another pack
A May 2026 community thread on the Cfx.re forum describes the cause as ID collisions between the carcols.meta files of different packs: “The moment two cars land on the same ID, sirens flash the wrong pattern, lightbars show the wrong color, modkits go missing from LSC.” Going by that thread and the older how-to, the fix is to make the IDs unique across your packs and to carry each changed mod kit name over to carvariations.meta. This applies whether or not you merge resources.
Clients crash with “TxdStore Pool Full”
TxdStore is a game pool, and the message says it is full. A forum report ties the crash to streamed packs: the server owner found the pack behind it by removing stream resources one by one. The server command increase_pool_size raises a pool at startup, and the docs list TxdStore and FragmentStore among the pools it accepts. Limits and steps are in the pool full guide.
Next Steps
- On Qbox, QBCore or ESX, make the car buyable and storable with the dealership guide.
- Give it its own engine audio with the custom engine sounds guide.
- If the car is missing, invisible or wrongly named, open the addon car not spawning guide.
- For more cars to install, see FiveCrate’s addon vehicles.
Browse Addon vehicles
Addon vehicles with custom handling, audio and visual modifications for FiveM servers.
Official documentation and repository references
- Cfx.re Docs: Data Files
- Cfx.re Docs: Resource Manifest
- Cfx.re Docs: Introduction to Resources
- Cfx.re Docs: Server Commands
- Cfx.re Docs: What's Changed in FiveM for GTAV Enhanced
- citizenfx/fivem: LoadStreamingFile.cpp (client streaming and data file loader)
- citizenfx/fivem: ResourceStreamComponent.cpp (server stream scan and size warnings)
- Cfx.re Forum (community tutorial): how to add vehicles, add-on and replace
Related guides
Alchemist FiveM: Convert Assets for GTA V Enhanced
Alchemist FiveM guide: convert Legacy YDR, YTD, YFT, YPT and YDD files to Gen9, set up stream_enhanced, use the CLI and handle escrowed assets.
Add Addon Cars to a QBCore, Qbox or ESX Dealership
How to add a car to a QBCore dealership, a Qbox vehicle shop or the ESX vehicleshop: the vehicles.lua entry, the SQL rows and the garage storage checks.
FiveM Custom Engine Sounds: How to Add Them to Addon Cars
FiveM custom engine sounds, step by step: build the sound pack resource, write the AUDIO data_file lines, set audioNameHash in vehicles.meta, fix silent cars.
FiveM Addon Car Not Spawning or Invisible: Causes and Fixes
Fix a FiveM addon car not spawning: check in order whether the resource, vehicles.meta and the stream files loaded, then fix invisible cars and NULL names.
FiveM 'Oversized Assets' Warning Explained and Fixed
The FiveM oversized assets warning starts above 16 MiB of physical or virtual memory. See the real FXServer thresholds and how to shrink a YTD file.



