Intermediate 21 min

Add custom vehicles to FiveM

Vehicle Pack, handling.meta files, carvariations, spam and network optimization for FiveM server.

#Vehicles#Handling#Stream#Addon

Ready to start your service? Check offers and order online.

View offers and order

Add custom vehicles to FiveM server

The addon FiveM vehicles (cars, motorcycles, LEO/EMS packs) enrich your roleplay server. This guide explains the installation of stream resources, the configuration handling.meta, vehicles.meta, the spawn in play and network optimization on FiveM hosting.

Each vehicle addon is a resource with files stream/ + XML metadata + entry in the spawn catalogue (qb-vehicleshop, esx_vehicleshop, vMenu...).

Prerequisite

  • FiveM compatible vehicle pack (stream + meta files)
  • Manager access panel files, FiveM server
  • Framework with garage/shop configured (QBCore, ESX)

Vehicle resource structure

resources/[vehicles]/ma-bmw-m3/
  fxmanifest.lua
  stream/
    m3.yft
    m3.ytd
    m3_hi.yft
  data/
    handling.meta
    vehicles.meta
    carvariations.meta
    carcols.meta (optionnel)

fxmanifest.lua

fx_version 'cerulean'
game 'gta5'
files {
  'data/handling.meta',
  'data/vehicles.meta',
  'data/carvariations.meta',
}
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/carvariations.meta'

Installation

  1. Upload the resource folder in resources/[vehicles]/
  2. Check consistent stream file names with vehicles.meta (<modelName>)
  3. Add ensure ma-bmw-m3 in server.cfg
  4. Restart the server completely
  5. Spawn admin test: /car m3 (order according to admin menu) or spawn vehicle code

handling.meta, road behaviour

Key parameters:

  • fMass, vehicle mass
  • fInitialDriveForce, acceleration
  • fBrakeForce, braking
  • fTractionCurveMax, adhesion
  • vecCentreOfMassOffset, stability

Gradually modify and test. Save the original before tuning "supercar" on realistic RP vehicle.

vehicles.meta and spam

The <modelName> in vehicles.meta is the **spawn name** used everywhere:

  • SQL tables owned vehicles (vehicle (column)
  • Config qb-core/shared/vehicles.lua
  • esx_vehicleshop / concession scripts

Integrate with QBCore Dealer

  1. Open qb-core/shared/vehicles.lua
  2. Add entry:
    { model = 'm3', name = 'BMW M3', brand = 'BMW', price = 85000, category = 'sports', shop = 'pdm' }
  3. Restart qb-core or server
  4. Check purchase and persistence garage

Integrate ESX vehicleshop

According to script: SQL table vehicles or config lua. Add model, price, category. Sync with owned_vehicles for persistence.

Optimization & Limitations

  • Heavy HD packs: best optimized models (LOD correct)
  • Limit high poly vehicles in dense area
  • Streaming: too many large packs = long customer loading time
  • OneSync, OneSync Infinity for stable multiplayer sync

Troubleshooting

  • Invisible vehicle, missing yft/ytd or bad model
  • Car without collision, hi.yft absent
  • Disappears in the garage, hash SQL
  • Handling weird, handling.meta unloaded (fxmanifest)
  • Black text, missing ytd or mismatch name

Frequently Asked Questions

LEO/EMS vehicles without script ?
Spawn possible in admin; font/EMS jobs require config garages jobs.

How many vehicles addon?
No strict limit; beyond 100-200 packs, organize in bundled resources and monitor RAM.

Related guides

FiveM server · Wiki games