Poom Poom Shop Pass · 29.99€/mo

Tutorials

Invisible walls, falling through floors: fixing common MLO bugs

NXBy Team NolX
· 4 min read

Trailer Row

Most MLO bugs fall into a handful of categories, and each one has a short list of likely causes. Before you rip a map out of your server, work through the symptom below that matches what your players are seeing.

One habit first: always test after a full server restart and with a cleared client cache. Half the "bugs" reported to mappers are stale files.

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

Close FiveM, empty that folder, reconnect.

Invisible walls

You walk into a doorway and stop dead. Nothing is there.

Likely causes, in order:

  1. Leftover vanilla collision. The MLO removed the old building visually, but its collision file is being overridden by another resource, so the old walls are still physically there. This is a file conflict; see why two maps of the same area break each other.
  2. Game build too low. The edited collision was made for a newer build. Check sv_enforceGameBuild against the map's requirement. For our maps, that is 2944 or newer for Richman and 3717 or newer for Grapeseed and Sandy. More in the game build guide.
  3. A prop with collision you cannot see. Rare on finished maps, but an invisible proxy object can block a path. Open the area in CodeWalker and look for entities with no visible mesh.

Quick test: stop the new map resource and walk the same spot. If the wall is still there, it is not the new map at all.

Falling through the floor

Usually happens on arrival, driving in fast or teleporting straight into the interior.

  • Collision not loaded yet. Collisions stream in after models. Teleport scripts that drop players in instantly are the worst offenders. Add a short wait for collision before releasing the player. RequestCollisionAtCoord(x, y, z) and checking HasCollisionLoadedAroundEntity(PlayerPedId()) in a loop helps a lot.
  • Lost collision edit. Same conflict problem as above, but the other way round: the new map's floor collision was replaced by a vanilla one that has nothing there.
  • Heavy streaming load. On busy servers with a lot of custom content, some clients simply load slower. If only a few players fall, and always the ones on weaker PCs or slow drives, that is the likely reason.

Rooms flicker or vanish when you turn

You look through a doorway and the room behind it disappears, or walls blink as you move.

  • Occlusion conflict. Vanilla occluders (invisible blockers the game uses to skip drawing hidden things) from the original building are still active. The MLO's edit removing them has been overridden.
  • Portal issue. Portals tell the game what is visible through each opening. If a portal is wrong, rooms behind it are culled. That is a map-side problem and needs the interior's .ytyp fixed.

If it only happens from one specific angle outside, it is almost always occlusion.

Interior too dark or too bright

  • Timecycle or weather script override. Some weather and time scripts force a timecycle that also affects interiors. Test with that script stopped.
  • Graphics settings. Very low shadow or lighting settings can make interiors look flat or dark. Compare on a second PC before blaming the map.
  • Entity set off. Some maps put lamps or light props in an entity set. If you disabled it in config.lua, the lights went with it.

A good MLO should look right both at noon and at night. Test both.

Props missing or floating

  • Missing furniture: game build too low for the props used, or the entity set containing them is disabled.
  • Floating vanilla objects: a fence, bin or tree hovering near the building usually means the vanilla ymap edit that removed it lost a conflict.
  • Props popping in late: LOD distances or a heavily loaded client. Some pop-in on low-end machines is normal.

Textures blurry or missing across the city

If textures start going bad everywhere after adding maps, it is not one map being broken. Players are running out of streaming memory. Check the total size of your streamed assets, remove maps that are not used in roleplay, and look for resources with oversized texture dictionaries.

Doors do not lock

The MLO provides the door objects. Locking and unlocking is your door script's job. Make sure you added the doors in ox_doorlock, qb-doorlock or whatever you use, with the correct model and coordinates. If a door swings but will not lock, the map is fine and the door script entry is missing.

Resource will not start

Look at the server console right after boot:

  • Escrow error: escrowed resources only run on a server whose license key belongs to the Cfx.re account the asset was granted to. Check which account your key is under.
  • Not found: typo in ensure, or an extra nested folder after unzipping.

A short debugging routine

  1. Full restart, cleared cache.
  2. Check the game build.
  3. Stop other maps in the area one by one.
  4. Compare stream file names for duplicates.
  5. Only then start editing files.

Most issues are solved by step 3. Editing collisions is the last resort, not the first.

Keep reading

More from the Journal