In short
To add an addon car to FiveM, put the car's .yft and .ytd files in a stream folder inside a resource, put vehicles.meta, handling.meta, carcols.meta and carvariations.meta in a data folder, and register them in fxmanifest.lua with data_file lines. The spawn code is the modelName value in vehicles.meta. Finally, ensure the resource in server.cfg and add the car to your dealership script.
In this guide
- Addon vs. replace vehicles
- Know your vehicle files
- Adding an addon car step by step
- Where do you find the spawn code?
- Adding the car to the dealership (vehicle shop)
- Common problems
- Tuning driving with handling.meta
- How lots of cars affect your server
- Quick checklist before adding a car
- Save time: a ready-made Turkish-themed car pack
- Next step
The right way to add cars to FiveM isn't to swap out one of the game's original models (a replace), but to add the car as a new addon vehicle under its own name. To do that, you put the car's model and texture files in a resource's stream folder, put its config files (vehicles.meta, handling.meta and so on) in a separate folder, register them with fxmanifest.lua, and start the resource in server.cfg. This guide covers the whole process, from adding a single car to putting it up for sale at the dealership.
Addon vs. replace vehicles
| Addon vehicle | Replace vehicle | |
|---|---|---|
| How it works | Added to the game under a new model name | Overwrites the model of an original GTA V vehicle |
| Original vehicle | Kept | Disappears from the game |
| Spawn code | Its own modelName value | The code of the overwritten vehicle |
| Management | Each car is separate and independent | High risk of conflicts and confusion |
Roleplay servers almost always go with addon vehicles. Replace only makes sense when, for example, you want to change the look of the vanilla police cars.
Know your vehicle files
A downloaded car pack usually contains these files:
.yft: The car's 3D model. There are usually two:aracadi.yftand the high-detailaracadi_hi.yft..ytd: The texture dictionary: paint, interior and light textures.vehicles.meta: The car's identity:modelName, class, camera and sound settings.handling.meta: Driving physics: weight, engine power, brakes, grip.carcols.meta: Mod parts, siren and light settings.carvariations.meta: Color combinations and livery options.
Some cars also include vehiclelayouts.meta, which defines seating positions. .oiv packages from single-player mod sites don't work in FiveM directly; you need to extract the .yft, .ytd and .meta files inside them and move them into the structure below.
Adding an addon car step by step
- Create a category folder for vehicles in your
resourcesfolder, for example[araclar]. Bracketed folders in FiveM are purely for organization. - Inside it, create a resource folder named after the car:
[araclar]/sahin_rp. - In that folder, create two subfolders named
streamanddata. - Put the
.yftand.ytdfiles instream, and all.metafiles indata. - Create the
fxmanifest.luafile below in the resource's root. - Add the line
ensure sahin_rptoserver.cfgand restart the server.
Your folder structure should look like this:
resources/
[araclar]/
sahin_rp/
fxmanifest.lua
stream/
sahin_rp.yft
sahin_rp_hi.yft
sahin_rp.ytd
data/
vehicles.meta
handling.meta
carcols.meta
carvariations.metafxmanifest.lua contents
fx_version 'cerulean'
game 'gta5'
files {
'data/vehicles.meta',
'data/handling.meta',
'data/carcols.meta',
'data/carvariations.meta'
}
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'CARCOLS_FILE' 'data/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/carvariations.meta'You don't need to list the files in the stream folder in the manifest; FiveM sends that folder to clients automatically. If your pack includes vehiclelayouts.meta, add it to the files list and also add the line data_file 'VEHICLE_LAYOUTS_FILE' 'data/vehiclelayouts.meta'. For details on adding resources and how ensure works, see our FiveM script installation guide.
Where do you find the spawn code?
A car's spawn code is the value of the <modelName> tag in vehicles.meta:
<modelName>sahin_rp</modelName>
<txdName>sahin_rp</txdName>
<handlingId>SAHINRP</handlingId>This value must match the name of the .yft file in the stream folder. handlingId must exactly match <handlingName> in handling.meta; if it doesn't, the car either won't spawn at all or will drive with the wrong physics. To test it, use your framework's admin command; in ESX and QBCore, it's usually /car sahin_rp.
Adding the car to the dealership (vehicle shop)
Once the car is in the game, it has to be registered with your dealership script so players can buy it. The method depends on the script you use:
ESX (esx_vehicleshop and similar)
Vehicles are read from the vehicles table in the database. You can run this query in HeidiSQL:
INSERT INTO vehicles (name, model, price, category)
VALUES ('Sahin RP', 'sahin_rp', 85000, 'sedans');The category value must be defined in the vehicle_categories table.
QBCore
Vehicles are defined in the qb-core/shared/vehicles.lua file. Copy an existing line in the file as a template and add a new entry; the key fields are model, name, brand, price, category and shop. The model field takes the spawn code. Since the file layout can differ slightly between QBCore versions, follow the format in your own file.
Job vehicles like police cars and ambulances are usually added to the garage settings of the relevant job script, not the dealership. For these, just enter the spawn code in your job script's config file.
Common problems
- The car won't spawn: The spawn code and
.yftfile name don't match, the resource isn'tensured, or there's an XML error in a.metafile. Check the F8 console and the server console. - The car is invisible or has no textures: The
txdNamevalue doesn't match the.ytdfile name. - "Oversized asset" warning in the console: The model or texture file is too large; it can cause texture loss and crashes for players. See our Oversized Asset warning guide for the fix.
- Two cars break each other: Two packs use the same
modelNameorhandlingName. Every car needs unique names. - Mod parts don't work: The
kitID incarcols.metaconflicts with another car.
Tuning driving with handling.meta
Most cars you download are tuned for single-player mods and don't feel realistic on a roleplay server: a family sedan might accelerate like a supercar. These are the values most often edited in handling.meta:
| Field | Effect |
|---|---|
fMass | The car's mass (kg); determines who pushes whom in a collision |
fInitialDriveForce | Engine power and acceleration |
fInitialDriveMaxFlatVel | Theoretical top speed |
fBrakeForce | Braking power |
fTractionCurveMax / fTractionCurveMin | Grip; low values make the car slide |
Change values in small steps, and restart the resource and test after each change. Keeping your server's cars in a table by class (sedan, SUV, sports, emergency) makes sure performance lines up with dealership prices. An expensive car that's slower than a cheap one makes your economy feel meaningless to players.
Sirens and liveries on emergency vehicles
On police cars and ambulances, siren lights come from carcols.meta, while livery options usually come from carvariations.meta and the model itself. If the siren ID (sirenSettings) conflicts with another vehicle, the lights flash incorrectly; every emergency vehicle needs a unique siren ID. Once the car shows up in-game, you can pick the livery from the admin menu or the job script's garage settings.
How lots of cars affect your server
Addon cars mostly affect players' computers and the download time on first connect, not the server CPU. Hundreds of high-resolution cars make new players wait longer to join and can cause texture loss for players with low video memory (VRAM). On the server side, disk usage and resource count go up. As a rough guide, for a roleplay server running a large set of cars and scripts, 8 GB of RAM and an NVMe disk give you a healthy base for both file delivery and scripts.
Bundling cars into a single resource
Instead of making dozens of cars into separate resources, you can merge them under one pack resource: put all .yft and .ytd files in a single stream folder, put each car's .meta files in subfolders like data/aracadi/, and list them all in the manifest. This keeps server.cfg clean, but remember that a single broken file can affect the whole pack.
Quick checklist before adding a car
- Is the car licensed and from a trusted source? Leaked files can contain broken models or hidden code.
- Are the file sizes reasonable? If a single car has tens of megabytes of textures, optimize it first.
- Do the
modelName,handlingNameand siren ID clash with other cars on the server? - Which dealership or job garage will the car be used in, and are its price and class decided?
Save time: a ready-made Turkish-themed car pack
Finding every car one by one, balancing handling values and cleaning up modelName conflicts takes hours. OyunBulut's Turkish Theme Emergency and Civilian Vehicle Pack bundles emergency job vehicles such as police and EMS together with civilian cars, and comes with automatic installation, so you can start filling your dealership and job garages right away.
Next step
If you don't have a server to run your car pack yet, the OB-FIVEM-4 FiveM server with 4 CPU and 8 GB DDR5 RAM, with a 70 GB NVMe disk and DDoS protection, is a good fit for roleplay setups heavy on streamed content like cars and clothing. Once your server is set up, add the ready-made Turkish-themed car pack and put the cars up for sale using the dealership steps above.
Frequently asked questions
How do I find a car's spawn code in FiveM?
Open the vehicles.meta file in the car's data folder; the value inside the modelName tag is the spawn code. It's usually the same as the name of the .yft file in the stream folder.
Why won't my addon car spawn?
The most common causes are the resource not being ensured, the modelName not matching the .yft file name, and XML errors in the .meta files. Check the server console and the in-game F8 console.
Do GTA 5 single-player car mods work in FiveM?
The files work, but the package format is different. You need to extract the .yft, .ytd and .meta files from the .oiv or dlc.rpf and move them into the FiveM resource structure (stream and data folders, fxmanifest.lua).
Will adding lots of cars slow down my server?
The impact on the server CPU is limited; the real impact is on players' download time and video memory. Large files can cause texture loss and oversized asset warnings.
Should I add police cars to the dealership?
No, emergency job vehicles are usually added to the garage settings of your police or EMS script. That way, only players in that job can use them.