Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix FiveM Server Not Loading Maps or Textures

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If your FiveM server is loading into a world with missing maps, invisible buildings, or gray/pink textures, the problem is almost always in how the server streams assets to clients. This guide walks through the most common causes—bad resource files, incorrect map loading, and client cache issues—and gives you a clear order of operations to fix them.

What You'll Need

  • Access to your server's files (via FTP, file manager, or local folder)
  • Access to your server console (usually via your hosting panel or terminal)
  • Basic knowledge of your server.cfg file
  • For client-side issues: the ability to clear cache on your own FiveM installation

Step-by-Step

  1. Identify whether the issue is server-side or client-side.
    Ask a few players (or test on a second computer) if they see the same missing textures. If only one person has the issue, it's likely their local cache. If everyone has it, move to the server-side fixes.
  2. Check the server console for resource errors.
    Look for lines like Error loading map, Failed to load stream, or Unknown map. These will point you to the exact resource that's failing. If you see errors, fix those resources first.
  3. Verify your map resource is loading correctly.
    In your server.cfg, ensure you have ensure mapname (e.g., ensure fivem-map or ensure your-map) after the map's dependencies. If you're using a custom map, make sure the stream folder contains the correct .ybn and .ytd files, and that the fxmanifest.lua references them properly.
  4. Check the map's file structure.
    For custom maps, the typical structure is:
      your-map/
        fxmanifest.lua
        stream/
          yourmap.ybn
          yourmap.ytd
        data/
          (optional .meta files)
      
    Make sure the fxmanifest.lua has data_file 'MAPS' 'data/yourmap_meta.xml' if you have meta files, and that the stream folder only contains map files (not scripts).
  5. Ensure all required map dependencies are installed.
    Many maps require base game assets or other resources (like mapmanager or spawnmanager). If you're missing these, the map may load but textures won't. Install the required dependencies from the map's documentation.
  6. Restart the server with a clean cache.
    Stop the server, delete the cache folder in the server root (if present), and restart. This forces the server to re-read all resources and can fix corrupted stream data.
  7. Clear client cache (for local issues).
    If the problem is on your side, close FiveM, navigate to %LocalAppData%\FiveM and delete the FiveM.app folder's cache subfolder. Be careful not to delete your settings or screenshots. Restart FiveM and rejoin.
  8. Check for texture streaming limits.
    If you have many high-resolution textures, the server might be hitting the streaming limit. In your server.cfg, you can increase sv_maxclientpacketsize (default 1024) and sv_maxpacketsize (default 1024) to allow larger transfers. Also, consider compressing textures or using lower-resolution versions.
  9. Verify that your server is using the correct game build.
    Some maps require a specific game build. In server.cfg, set sv_enforceGameBuild <build> to the required build (e.g., 2372 for recent updates). Check the map's documentation for the required build.
  10. Test with a minimal server configuration.
    Temporarily disable all non-essential resources in server.cfg (comment them out with #) and load only the map. If the map loads correctly, re-enable resources one by one to find the conflicting one.

Common Mistakes

  • Forgetting to ensure the map after its dependencies. If the map loads before a required resource, it may fail silently.
  • Putting map files in the wrong folder. Stream files must be in stream, not in resources directly.
  • Using a map that's incompatible with your server's game build. This often causes missing textures or crashes.
  • Not clearing the server cache after updating map files. Old cached data can override new files.
  • Mixing up client and server cache. Clearing the server cache won't fix a client-side texture issue.

Tips

  • Always test map changes on a separate test server before deploying to production.
  • Keep a backup of your server.cfg and map resources before making changes.
  • Use a resource like txAdmin to schedule restarts and monitor console logs.
  • If you're using a popular map, check its official forums or Discord for known issues.
  • For large maps, consider splitting them into multiple resources to reduce load.

Troubleshooting

If the map still doesn't load after following these steps:

  • Check the server log file (usually server.log in the server root) for detailed errors that the console might have missed.
  • Try a different map to see if the issue is specific to one map or all maps. If all maps fail, the problem is likely with your server setup or base game files.
  • Reinstall FiveM server files if you suspect corruption. Download the latest server build from the official FiveM site and replace the core files (keep your resources and config).
  • Check your server's disk space—if the drive is full, streaming can fail.
  • If you're using a custom map with custom textures, ensure the .ytd files are not corrupted. Try re-exporting them from your modeling tool.

Frequently Asked Questions

Why do I see gray/pink textures on my server but not on single-player?

This usually means the server is not streaming the texture files correctly. Check that the map resource's stream folder is intact and that the server has permission to read the files.

Can I fix this without restarting the server?

Some resource errors can be fixed by typing refresh and ensure mapname in the console, but for most map issues a full restart is needed.

Why does the map load but buildings are invisible?

Invisible buildings usually mean the .ybn files are missing or not being loaded. Verify that the stream folder contains the correct collision files and that the fxmanifest.lua references them.

Does clearing the client cache affect my settings?

No, clearing the cache folder in FiveM.app only removes temporary files. Your settings are stored in settings.xml and are not affected.

I have a map that works on another server but not mine. What's different?

Compare your server.cfg with the working server's. Common differences include game build, resource order, and missing dependencies. Also check if the working server uses a different map manager.

How do I know if my server is using the right game build?

In the server console, type status to see the build version. You can also check the server.cfg for sv_enforceGameBuild. The map's documentation should specify the required build.