MLOS
MLOs & Maps

How to Build an MLO With CodeWalker and Sollumz

May 1, 2024 · 4 min read

Creating custom MLOs (Map Location Objects) for your FiveM server can significantly enhance the immersive experience for your players. This detailed guide explains how to build an MLO with CodeWalker and Sollumz, tools that provide intuitive processes and powerful capabilities for mapping in Grand Theft Auto V. Whether you’re using frameworks like ESX, QBCore, or QBox, understanding these tools will help you craft a unique environment that meets your vision.

Understanding the Basics of CodeWalker and Sollumz

Before diving into the steps, it's important to familiarize yourself with the tools you'll be using:

  • CodeWalker: This is an excellent tool for editing and creating maps, allowing you to manage assets and create custom locations directly in GTA V.
  • Sollumz: An essential tool for exporting your 3D models into the correct formats for use in games, including FiveM. It integrates seamlessly with CodeWalker, enabling a smooth workflow.

System Requirements

Ensure your system meets the following requirements before proceeding:

  • GTA V installed and set up for modding.
  • CodeWalker: Latest version downloaded from the official GitHub repository.
  • Sollumz: Make sure you have the latest version available, typically found in the same environment as CodeWalker.
  • Familiarity with 3D modeling (using Blender or similar) is advantageous but not mandatory.

Building Your MLO: Step-by-Step Guide

Step 1: Setting Up Your Work Environment

  1. Download and install CodeWalker and Sollumz. Extract the files to a convenient location on your drive.
  2. Launch CodeWalker and set up a new project. You can create a new MLO by selecting File > New > MLO.
  3. Configure your project settings in CodeWalker, including setting the game directory if needed.

Step 2: Modeling Your MLO

  1. Create your base model using Blender or another 3D modeling software. Ensure you have the following:

    • Proper scale: Make sure your model corresponds correctly to the GTA V scale.
    • Correct materials: Assign textures and materials as needed.
    • Collision meshes: Create collision objects for player interactions.
  2. Export Model: Use the Sollumz exporter from Blender to export your model as a YDR or YMAP file, which can be interpreted by GTA V.

Step 3: Importing MLO into CodeWalker

  1. Import your exported files into CodeWalker by going to File > Import > YDR/YMAP.
  2. Edit your MLO to add props and details. Use the interface to manipulate the environment, ensure correct placement, and test how objects interact within the game.
  3. Save your work frequently to avoid losing any progress.

Step 4: Configuring the Resource Manifest

Once your MLO is ready, you need to set up the resource manifest file.

  1. Create a new folder under your server’s resources, e.g., resources/[your_resource_name].

  2. Inside this folder, create a file named fxmanifest.lua.

  3. Add the following code to your fxmanifest.lua file:

    fx_version 'cerulean'
    game 'gta5'
    
    author 'Your Name'
    description 'Custom MLO'
    version '1.0'
    
    files {
        'path/to/your/model.ydr',
        'path/to/your/model.ymap',
        
    }
    
    data_file 'DLC_ITYP_REQUEST' 'stream/YOUR_FILE.ytyp'
    
  4. Make sure to adjust the file paths to point to your model files accurately.

Step 5: Testing Your MLO in FiveM

  1. Add the resource to your server's server.cfg by including the line:
    start [your_resource_name]
    
  2. Launch your FiveM server and check for any error messages in the console.
  3. Enter the game and navigate to the coordinates where your MLO is located. Use a teleport command if necessary to reach the area quickly.
  4. Inspect the MLO for any visual or interaction issues. Test collision, navigation, and optimization within the server.

Troubleshooting Common Issues

If you run into problems, consider the following:

  • Missing Textures: Ensure all texture files are included in your fxmanifest.lua.
  • Collision Issues: Confirm that your collision meshes are correctly set up in the 3D modeling software.
  • Errors in Console: Pay attention to the console output for any syntax errors in your manifest or file paths.

Checklist for Finalizing Your MLO

  • Model exported successfully
  • Correct file paths in fxmanifest.lua
  • Resource added to server.cfg
  • Test all interactions in FiveM
  • Optimize performance within the server

Frequently Asked Questions

Q1: Can I use existing models from GTA V for my MLO?
A1: Yes, you can modify existing models. However, ensure you respect copyright and licensing conditions.

Q2: What is the difference between YDR and YMAP files?
A2: YDR files are for 3D models, while YMAP files define the placement and properties of the models in the game world.

Q3: How do I optimize my MLO for better performance?
A3: Keep polygon count low, use lower texture resolutions where possible, and ensure efficient collision models.

Q4: Can I share my MLO with others?
A4: Yes, you can share as long as you don't violate any terms of use regarding the original game assets or any assets included in your MLO.

Q5: Is learning to build MLOs difficult?
A5: It may require some practice, particularly with 3D modeling. However, many resources are available online to assist you along the way.

#mlo#codewalker#sollumz#fivem#maps

Keep reading