FiveM allows you to stream custom assets (models, textures, data files) from the server to the client automatically. This feature is what allows servers to have custom cars, clothes, weapons, and maps.
To stream assets, you need a standard resource structure with a stream folder.
my-car-pack/
├── fxmanifest.lua # Resource manifest
├── stream/ # ALL assets go here (yft, ytd, ydr, ymap)
│ ├── adder.yft
│ ├── adder.ytd
│ └── ...
├── data/ # Optional: data files (handling.meta, vehicles.meta)
│ ├── handling.meta
│ └── vehicles.meta
└── client.lua # Optional: scriptsstream FolderAny file placed inside the stream/ folder is automatically scanned by FiveM.
stream/ in your fxmanifest.lua..ytd, .yft, .ymap) and loads it.To add a custom vehicle, you typically need the model files and the data configuration files.
.yft (model) and .ytd (texture) files in the stream/ folder.handling.meta, vehicles.meta, and carcols.meta in a data/ folder (organization preference).fxmanifest.lua.fx_version 'cerulean'
game 'gta5'
-- List the data files
files {
'data/vehicles.meta',
'data/carcols.meta',
'data/handling.meta',
}
-- Tell the game to load them as specific data types
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'CARCOLS_FILE' 'data/carcols.meta'Streaming maps is even easier.
custom_map).stream/ folder inside it..ymap (map placement) and .ydr/.ytyp (models/definitions) files into stream/.fxmanifest.lua.fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'The this_is_a_map 'yes' directive helps FiveM optimize the loading of the map, especially for large MLOs or interiors.
Clothing works similarly to vehicles but uses ped data files.
.ydd, .ytd files in stream/.stream/mp_m_freemode_01/.....ytd file is >10MB, try to split it or reduce quality.police-fleet, civ-cars-pack1, custom-map-legion.| File | Directive in fxmanifest | Purpose |
|---|---|---|
handling.meta | HANDLING_FILE | Vehicle physics, speed, turning. |
vehicles.meta | VEHICLE_METADATA_FILE | Vehicle models, audio, textures. |
carcols.meta | CARCOLS_FILE | Siren lights, mod kit IDs. |
carvariations.meta | VEHICLE_VARIATION_FILE | Vehicle paint jobs, spawning rules. |
weaponarchetypes.meta | WEAPON_ARCHETYPES_FILE | Custom weapon definitions. |