Poom Poom Shop Pass · 29.99€/mo

Tutorials

How to install an MLO on your FiveM server, step by step

NXBy Team NolX
· 4 min read

Grapeseed General Store

Installing an MLO is not hard. Most of the problems I see come from skipping a step, usually the game build or the license key. Here is the order I follow every time, whether it is a single trailer or a full estate.

1. Get the files from the Cfx.re portal

Most paid maps today are delivered through Cfx.re Asset Escrow. After checkout on Tebex (which asks you to log in with your Cfx.re account), the asset is granted to that account.

  1. Go to portal.cfx.re and sign in with the same Cfx.re account you used at checkout.
  2. Open Assets, then Granted Assets.
  3. Download the resource. You get a zip with a folder like pps_grapeseed_general_store.

One rule that catches people out: an escrowed resource only runs on a server whose license key belongs to the account the asset was granted to. If your developer bought the map on their personal account and your server key is on the owner's account, it will not start. Sort that out before you buy, not after.

2. Check the game build first

Open your server.cfg and look for sv_enforceGameBuild. If the map needs a newer build than you run, the props it relies on simply will not exist on the client, and you get missing walls or invisible floors.

# server.cfg
sv_enforceGameBuild 3717

For our maps: Richman interiors need 2944 or newer, Grapeseed and Sandy Shores interiors need 3717 or newer. Higher is fine. If you are not sure what this setting does or what raising it affects, read the sv_enforceGameBuild guide before changing it on a live server.

3. Drop the folder into resources

Unzip and place the folder inside your resources directory. I like to keep maps in their own category folder so they are easy to find later:

resources/
  [maps]/
    pps_grapeseed_general_store/
      fxmanifest.lua
      config.lua
      stream/
        ...

Square brackets around a folder name make it a category. FiveM scans inside it but does not treat it as a resource itself.

Do not rename the resource folder of an escrowed asset. Keep the name it came with.

4. Ensure it in server.cfg

Add one line:

ensure pps_grapeseed_general_store

If you used a category folder, you can also ensure [maps] to start everything in it, but listing each map explicitly makes it easier to disable one when debugging.

Put map resources before scripts that depend on them (door locks, housing, target zones). Not strictly required for streaming, but it keeps startup predictable.

5. Pick your entity sets (optional)

Many MLOs ship with a config.lua that lets you choose which furniture or decoration sets are active. Ours are left unencrypted for this. Open it, read the comments, change the values, save. If you want to switch them live from your own scripts instead, see entity sets in FiveM.

6. Restart properly

For a new map, do a full server restart rather than restart resourcename from the console. Streamed map files, especially edited vanilla ones, do not always reload cleanly while players are connected.

On your own client, clear the cache if you had an older version of the map before:

%localappdata%\FiveM\FiveM.app\data\cache

Delete the contents of that folder (FiveM closed) and reconnect. Players will download the new files automatically.

7. Test like a player, not like an admin

Fly in with noclip and everything looks perfect. Walk in and things break. My test routine:

  • Drive to the location from a distance at normal speed. Watch for pop-in and missing ground.
  • Walk through every door, in and out, at least twice.
  • Visit at day and at night (/time 23 or whatever your weather script uses).
  • Stand in each room and turn slowly. Flickering walls mean a portal or occlusion problem.
  • Jump on stairs and upper floors. Fall through anything and you have a collision issue.

The common MLO bugs article covers what each symptom usually means.

8. Wire up doors and scripts

The map gives you physical doors. Locking them is your door lock script's job (ox_doorlock, qb-doorlock and so on). Add the doors in that script using their in-game position and model. Same for housing systems, stashes or job zones: those all need the coordinates of the new interior.

When it does not start

Check the server console right after startup. The usual suspects:

  • Escrow or license error: wrong account, see step 1.
  • Resource not found: typo in the ensure line, or the folder is nested one level too deep (a folder inside a folder after unzipping).
  • Map loads but looks broken: game build too low, or another map in the same area is overriding the same files. That last one is covered in why two maps of the same area break each other.

That is the whole process. Once you have done it twice it takes five minutes, plus however long you spend walking around admiring the place.

Keep reading

More from the Journal