Add mods to a FiveM server: cars, MLOs, clothes
To add a mod to your FiveM server, such as an addon car, an MLO interior or clothing, put its files in a resource folder with a stream folder and an fxmanifest. Then add ensure with that resource’s name to server. Players download the files when they join, and it works the same on ESX, Qbox, QBCore or a server with no framework.
This page is about the server, so nothing here changes a player’s own game folder. Mods for your own game as a player are a different topic.
Before you start
- A server you can stop and start, with access to its
resourcesfolder andserver. If you’ve never added a resource before, start with how to install FiveM scripts..cfg - A mod made for FiveM. It usually ships as a resource with an
fxmanifest. A single-player mod has none, so you build the resource yourself from its files, as in “Lay out a stream resource”..lua - For a paid, escrowed pack, the Cfx.re account that bought it must also own the server’s license key.
Lay out a stream resource
-
In
resources, create a category folder such as[mods]. A folder name in square brackets is a category, andensure [mods]starts every resource inside it. -
Put each mod in its own folder inside
[mods]. The folder name is the resource name. -
In that folder, put model, texture and map files (
.yft,.ytd,.ydr,.ydd,.ymap,.ytyp) instream, and.metafiles indata. Files instreamdon’t need a line in the manifest. -
Check that
fxmanifeststarts with these two lines..lua ceruleanis the current manifest version, andgta5means the resource runs on FiveM.fx_version 'cerulean' game 'gta5'In an escrowed pack, keep
lua54 'yes'. The manifest reference calls it deprecated, but Cfx.re’s escrow FAQ still lists it as a requirement. -
In
server, add.cfg ensure [mods]after your framework and its dependencies. If a mod breaks the server, delete its folder or move it out of[mods], then restart.
Add an addon car
The free iak_wheelchair resource is a drivable wheelchair with the standard addon vehicle layout, so it makes a good example:
[mods]/iak_wheelchair/
fxmanifest.lua
data/handling.meta
data/vehicles.meta
data/carvariations.meta
stream/iak_wheelchair.yft
stream/iak_wheelchair_hi.yft
stream/iak_wheelchair.ytd
-
In
fxmanifest, list every.lua .metafile infilesso players download it, and give each one adata_fileline so the game knows what it is. Here’s the wheelchair’s own manifest:fx_version 'cerulean' game 'gta5' files { 'data/vehicles.meta', 'data/carvariations.meta', 'data/handling.meta' } data_file 'HANDLING_FILE' 'data/handling.meta' data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta' data_file 'VEHICLE_VARIATION_FILE' 'data/carvariations.meta' -
If the car comes with more files, add lines for them too:
carcolsis.meta CARCOLS_FILEandvehiclelayoutsis.meta VEHICLE_LAYOUTS_FILE. The type names come from Cfx.re’s data file list. Spell them exactly, because a misspelt type loads nothing. -
Find the spawn name. It’s the
<modelName>value invehicles, and it usually matches the.meta .yftname instream. For the wheelchair that’s<modelName>iak_wheelchair</.modelName> -
Check that
<handlingId>invehiclesequals.meta <handlingName>inhandling. In the wheelchair both are.meta iak_wheelchair.
Our Advanced Ambulance Job uses this exact resource. Config in its config sets the model to iak_wheelchair, and the README lists the wheelchair model as a requirement. Start iak_wheelchair in server alongside the job, and the wheelchair item places that model.
Add an MLO interior
An MLO is a map interior with its own doors, placed at one spot on the map. Free or paid, an MLO installs the same way. Escrow is what changes.
- Check the pack’s README for its location and any resource it needs, and start that resource too.
- Copy the whole pack into
[mods]. Keep every file instream, including_manifest. Cfx.re’s map guide says this file “is necessary to load the models correctly”..ymf - Check that
fxmanifesthas.lua this_is_a_map 'yes'. It marks the resource as a map and reloads the map storage when the resource loads. - Make sure no other map in
resourcescovers the same building, such as two versions of one police station. If one does, keep one and delete the other’s folder. - For an escrowed pack, copy the folder with a tool that keeps hidden files. The
.fxapfile has to be on the server, or the console printsFailed to verify protected resource.
Cfx.re Asset Escrow protects Lua, .yft, .ydd and .ydr files. An escrowed pack only starts on a server whose license key belongs to the account that bought it. If the console prints You lack the required entitlement, follow the entitlement fix.
Our Housing System V3 & Shell Creator has an MLO type in its property creator. You draw the house over an MLO you installed and place its doors. If you’re deciding between MLOs and shells for homes, read shells or MLOs for housing.
Add addon clothing
Addon clothing adds items to the multiplayer peds, mp_m_freemode_01 and mp_f_freemode_01, without replacing the game’s own.
-
Pick a pack that ships as a resource if you can. If you have to build one, the author of Cfx.re’s addon clothing tutorial suggests their grzyClothTool over the manual steps.
-
Put the
.ymt,.yddand.ytdfiles instream. Each clothing file name starts with the full YMT name and^, such asmp_in the tutorial.f_ freemode_ 01_ p_ tutorial_ clothes^p_ head_ 000 .ydd -
In
fxmanifest, list the pack’s.lua .metafile infilesand give it aSHOP_line. Here’s the tutorial’s manifest:PED_ APPAREL_ META_ FILE fx_version 'cerulean' game 'gta5' files { 'mp_f_freemode_01_tutorial_clothes.meta' } data_file 'SHOP_PED_APPAREL_META_FILE' 'mp_f_freemode_01_tutorial_clothes.meta' -
A pack for both peds has one
.metafile per ped. List each infileswith its owndata_fileline.
Use the mods in your scripts
In our Advanced Police Job, each station in Config (config) holds its points and garages. The station points default to the Gabz MRPD MLO. If you run another police station map, move them to it in the config.
To add an addon police car, put it in a category’s vehicles list under a garage’s vehicleCategories, with its spawn name as model. The config ships rows like these:
{label = 'Cruiser', model = 'police', price = 0},
{label = 'Gauntlet', model = 'polgauntlet', price = 0, minGrade = 1}
By default, our Advanced Jail System V2 puts its prison at Gabz Bolingbroke and Advanced Ambulance Job puts its hospital at Gabz Pillbox. You can move either to any MLO in its config.
Check it works
- Restart the server and watch the console while
[mods]starts. You shouldn’t see anAsset .or.. MiB of physical memory virtual memoryline naming your resources. - Join, and as an admin run
/carwith the spawn name, such as/car iak_wheelchair. ESX, Qbox and QBCore all register/carfor admins. The car appears. - Go to the MLO’s location. The walls, floors and doors load, and you can walk in.
- Open your clothing menu on the matching ped. The pack’s items are listed after the game’s own.
If it fails
Asset .: the server prints this when a file in.. uses . .. MiB of physical memory. streamtakes over 16 MiB of physical or virtual memory. Over 48 MiB it addsOversized assets can and WILL lead to streaming issues (such as models not loading/rendering)., and over 64 MiB the line turns red. Resize the textures in that file, or ask the mod’s author for a lighter version./carspawns nothing: probably the spawn name differs from<modelName>, or the resource isn’t started. Runensurewith the resource name and read the console.- The car drives like another car: probably its
HANDLING_FILEline is missing, or<handlingId>and<handlingName>differ. Compare the manifest with both.metafiles. - The interior loads with parts missing: check that the pack’s
_manifestis in.ymf stream, or copy the whole pack again. - Two buildings overlap: two maps cover the same place. Keep one of them.
You lack the required entitlement: the pack was bought on a different Cfx.re account from the one that owns the server key. Follow the entitlement fix.- A clothing item is invisible: check the tutorial’s naming rules. The
.ymtname is all lowercase, and each drawable’s_uor_rending matches its textures.


