Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Addon or replace, and where models come from

A vehicle added to FiveM comes in two forms:

  • Addon: a vehicle on top of the game's own, with its own model name. The original cars stay untouched. This is the form to prefer.
  • Replace: the model replaces a game vehicle and takes its name (its files carry the original vehicle's name). No new name needed, but the original vehicle disappears for the whole server, and two replaces of the same model conflict.

Copyright. A 3D model is its author's work. Many cars shared for free are ripped from other games without permission: using them on a public server exposes you to takedown requests. Prefer models whose author allows use on FiveM, respect the licence (credit, no resale or redistribution), and get paid vehicles from their author's store, never as a copy. Some are protected by Cfx.re's Asset Escrow: they only start with a licence key from the account that bought them (see FiveM licence key).

02

The structure of a vehicle resource

An addon car is a resource, like a script: a folder in resources, with an fxmanifest.lua at its root. A common layout:

resources/[vehicules]/ma_voiture/
├── fxmanifest.lua
├── data/
│   ├── vehicles.meta
│   ├── carvariations.meta
│   ├── carcols.meta
│   └── handling.meta
└── stream/
    ├── ma_voiture.yft
    ├── ma_voiture_hi.yft
    └── ma_voiture.ytd
  • The stream folder: the files sent to players. .yft is the model (the _hi version is the one shown up close), .ytd the texture dictionary. Tuning parts often have their own .yft. FiveM streams this whole folder, subfolders included, without you having to list the files.
  • vehicles.meta: the vehicle's record. <modelName> is its model name, <txdName> the name of its .ytd, <handlingId> the link to its handling, <gameName> the displayed name.
  • handling.meta: the handling (mass, acceleration, braking, grip). Its <handlingName> must be identical to the <handlingId> in vehicles.meta.
  • carvariations.meta: the colours offered and the tuning kit linked to the model.
  • carcols.meta: tuning kits (parts, kit ID) and, on emergency vehicles, sirens and light bars.

Not every car has all four files: vehicles.meta is required, the others depend on the vehicle. Some add more, such as vehiclelayouts.meta (occupant positions). For the general rules of resources (folder name, bracketed categories), see installing a FiveM script.

03

The fxmanifest.lua, ensure and the spawn name

The manifest declares the .meta files twice: in files, so they are sent to players, and with data_file, to tell the game what type of file each one is.

fx_version 'cerulean'
game 'gta5'

files {
    'data/vehicles.meta',
    'data/carvariations.meta',
    'data/carcols.meta',
    'data/handling.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'

A vehiclelayouts.meta is declared the same way, with the VEHICLE_LAYOUTS_FILE type. A file listed in data_file but missing from files never reaches the player: it is the most common oversight.

Then add the resource to server.cfg and restart the server:

ensure ma_voiture

Do not restart a vehicle resource live while players are connected: vehicles already spawned can disappear or crash some players' games. A full server restart is safer.

The spawn name is the value of <modelName> in vehicles.meta, usually the same as the .yft name. It is what you type to spawn the car: in the txAdmin menu, with the admin /car ma_voiture command on ESX or QBCore, or in the spawn-by-model-name field of vMenu. If the game shows NULL instead of the vehicle's name, no text is attached to its <gameName>: a client script can set it with AddTextEntry('MAVOITURE', 'Ma voiture'), the key being the <gameName> value.

04

Group cars into a pack, and watch the size

Beyond a few cars, one resource per vehicle becomes hard to manage. A pack brings them together in a single resource, with one subfolder per car:

pack_voitures/
├── fxmanifest.lua
├── data/
│   ├── voiture_a/   (vehicles.meta, handling.meta…)
│   └── voiture_b/
└── stream/
    ├── voiture_a/   (.yft, .ytd)
    └── voiture_b/

The manifest then uses wildcards, which pick up every file of the same name in the subfolders:

files {
    'data/**/*.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'

A single ensure pack_voitures line is enough. The downside: an error in one car's .meta can affect the whole pack. Add vehicles one at a time and test each before the next.

Texture size. Every file in the stream folder is downloaded by players on their first connection, then kept in cache, and loaded into memory when the car is nearby. An oversized .ytd, often because of very high resolution textures, lengthens the download and causes textures that flicker or fail to load. The server console flags these oversized files when the resource starts: lower their texture resolution or choose an optimised version of the model. Also keep the number of cars reasonable: ten well-made vehicles are better than two hundred that weigh down every connection. The guide optimising a FiveM server gives the other levers.

05

Common errors

  • The car does not spawn: the resource did not start (read the console), or the name typed does not match <modelName>. Also check that the .yft carries that name.
  • The car spawns without textures: the .ytd is missing from stream, or its name does not match <txdName>.
  • The handling feels wrong: <handlingId> and <handlingName> are not identical, or handling.meta is not declared in files and data_file. Two vehicles sharing the same handling name also conflict.
  • Another car's tuning parts show up: two carcols.meta files use the same kit ID. Give each kit a unique ID, in carcols.meta and in carvariations.meta.
  • Invisible car or crash on spawn: a damaged file, oversized textures, or a model that needs a more recent game version. Some vehicles require a specific game build: see the guide FiveM game build.
  • The displayed name is NULL: no text is defined for <gameName>. It is only cosmetic; AddTextEntry fixes it.

For other console messages, see FiveM server errors. Maps and interiors also use a stream folder: the guide installing an MLO covers that case.

06

On a CloudFive server

On our FiveM hosting plans, from €2.50 per month, adding cars is done from the client area manager.cloudfive.fr:

  • Files: upload the vehicle or pack folder to resources with the file manager or over SFTP, then add the ensure line to server.cfg.
  • Console: it shows resources starting live, with the warnings about oversized files.
  • txAdmin included: its in-game menu spawns a car by its model name, so you can test right away.
  • Backups: make one before adding a pack, so you can roll back if a vehicle breaks something.
  • Artifacts: the client area shows the installed version and the available versions, with a button to go back to the previous one.

Servers run in France on AMD Ryzen 9 9950X, DDR5 memory and NVMe storage, with Anti-DDoS Premium included. Monthly, no commitment, and support in French 7 days a week.

07

Frequently asked questions

How do I add an addon car to a FiveM server?

Put the vehicle's folder in resources, with the .yft and .ytd files in a stream subfolder and the .meta files declared in fxmanifest.lua (files and data_file). Add ensure followed by the folder name to server.cfg, restart the server, then spawn the car with its model name.

What is the difference between an addon car and a replace?

An addon car is added to the game's vehicles with its own model name. A replace car overwrites an original vehicle, which then disappears for the whole server. Addon is the form to prefer.

What is a FiveM car's spawn name?

It is the value of the modelName tag in the vehicle's vehicles.meta file, usually the same as its .yft file name. You type it in the txAdmin menu, with the /car command on ESX or QBCore, or in vMenu.

Why does my addon car have no textures?

The .ytd file is missing from the stream folder, or its name does not match the txdName tag in vehicles.meta. Oversized textures can also flicker or fail to load: the server console flags those files at startup.

How do I put several cars in one resource?

Create a pack with one subfolder per car in data and in stream, then use wildcards in fxmanifest.lua, for example data/**/vehicles.meta. A single ensure line then starts all the cars.

Our plans

Going further.

The plans covered in this guide, hosted in France and protected by our anti-DDoS, with no commitment.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay