Add custom MLO maps and interiors
Install MLO interiors and custom maps on FiveM: streaming, ensure order, conflicts and server cache.
Add custom MLO maps and interiors
MLOs (interiors and intersections built with OpenIV) and custom maps install as streaming resources. Their main challenge is frequent conflicts between resources that edit the same building or map cell.
Cause / The problem
An MLO fails to load, flickers or causes FPS drops when two resources stream the same ymap or ytyp, when _manifest.ymf is missing, or when the ensure order places the resource before its dependencies. The server cache can also keep an old version of the files.
Solution
- Create a resource folder, e.g.
resources/[mlo]/my_interior/, with anfxmanifest.lua:
Also includefx_version 'cerulean' game 'gta5' files { 'stream/**/*.ybn', 'stream/**/*.ydr', 'stream/**/*.ymap', 'stream/**/*.ytyp', } data_file 'DLC_ITYP_REQUEST' 'stream/**/manifest.fymt'_manifest.ymfif the pack author provides one. - Place all files (
.ymap,.ytyp,.ydr,.ybn) insidestream/. Never mix an MLO and a YMAP that touch the same interior. - Declare the resource in
server.cfg:ensure my_interior - Respect the
ensureorder. MLOs that depend on a custom IPL must load after it; place map resources high in the list, before gameplay scripts. - Detect conflicts. If two MLOs edit the same building, only one applies and the other flickers. Keep only one per interior or merge the
ymapfiles in OpenIV. - Clear the server cache after every change: from txAdmin, Advanced → Server Actions → Clear server cache, then restart. On the client side, ask players to clear their cache if objects stay ghosted.
For a business ownership setup (stash, garage), also check that the MLO is compatible with your ESX/QBCore framework before declaring it.