PEDS
Peds & Characters

How to Set Up a Ped Selector / Character Menu in FiveM

June 12, 2025 · 4 min read

Setting up a ped selector or character menu in FiveM can dramatically enhance your roleplay server by allowing players to customize their characters seamlessly. Whether you’re using ESX, QBCore, or another framework, this guide will walk you through the essential steps to achieve a functional, user-friendly ped selector. Let’s dive into the specifics.

Understanding the Basics

Before you can effectively set up a ped selector, it’s crucial to understand what it is and why it matters for your server. A ped selector allows players to choose from different character models (peds) when they spawn. This functionality is vital in roleplay scenarios, where character appearance can impact gameplay.

Why Use a Ped Selector?

  • Enhanced Roleplay: Different peds can contribute to more immersive roleplay experiences.
  • Customization: Players can express themselves through unique character designs.
  • Easy Access: Simplifies the process of changing characters without extensive menus.

Preparing Your Server

Step 1: Install Required Resources

To begin, you must ensure that you have the necessary resources installed on your server. This example assumes you are using the ESX framework, but the logic applies similarly if you are a QBCore user.

  1. Download and Install Essential Resources:
    • ESX (or QBCore)
    • A ped selection script (look for a community-favorite like esx_skin or qb-clothing).

Step 2: Configure Your Server Files

You will need to edit a few configuration files to set up the ped selector correctly. Here’s how you can do this:

  • server.cfg:

    • Ensure your resource is started by adding this line:
      start [your_ped_selector_resource_name]
      
  • fxmanifest.lua:

    • In your ped selector resource, make sure you have the required manifest settings. An example configuration looks like this:
      fx_version 'cerulean'
      game 'gta5'
      
      author 'Your Name'
      description 'Ped Selector Menu'
      version '1.0'
      
      client_script 'client.lua'
      server_script 'server.lua'
      

Creating the Character Menu

Step 3: Client Script Setup

In your client.lua file, you’ll handle the logic for displaying the character menu. Here’s a simple outline:

  1. Open Character Menu:
    • Set up a key binding to open the ped selector:
      RegisterCommand("pedselect", function()
          -- Trigger the UI
      

displayCharacterMenu() end, false) ```

  1. Display Models:

    • In the displayCharacterMenu() function, show a list of available peds.
  2. Handle Selection:

    • When a player selects a ped, set their model accordingly:
      SetPlayerModel(PlayerId(), selectedPed)
      

Step 4: Adding Ped Models

  • In the same client.lua, define your list of peds. A sample array might look like:
    local peds = {
        {name = "mp_m_freemode_01", label = "Male"},
        {name = "mp_f_freemode_01", label = "Female"},
        -- Add more peds here
    }
    

Troubleshooting Common Issues

Step 5: Debugging

If your ped selector isn’t operating as expected, consider the following steps:

  • Check Console Logs: Use the console to check for errors or warnings that might indicate missing files or syntax errors.
  • Ensure Resource is Started: Check if your resource is correctly listed in server.cfg and started without issues.
  • Ped Model Validation: Ensure that the ped names you are trying to use are valid and available in GTA V.
  • Framework Compatibility: Double-check if your resource is compatible with the specific framework you are using (ESX, QBCore, etc.).

Advanced Features

Step 6: Customizing the UI

For a more engaging experience, consider customizing your user interface. Libraries like NUI can be used to create a visually appealing layout for your character menu.

  • Integration with Inventory: You can link your character selection with character inventories to carry over saved items across sessions.
  • Saving States: Implement features that save a player’s chosen character, allowing for easy switching without having to reselect every time.

You can find additional scripts and resources in our scripts category to enhance your server.

Frequently Asked Questions

How long does it take to set up a ped selector?

Setting up a basic ped selector can take anywhere from a couple of hours to half a day, depending on your familiarity with coding and FiveM resources.

Do I need to know how to code?

While basic coding knowledge helps, many scripts come pre-configured for easier setup. You’ll need to understand how to modify files and follow instructions.

Can I add more custom peds later?

Absolutely! You can easily add more ped models by updating the configuration in your client.lua file.

What frameworks does this guide support?

This guide primarily focuses on ESX and QBCore, but can be adapted for other frameworks with minor changes.

Where can I find more peds?

You can find a variety of character models in our peds category on Fivemania.

Featured in this post

#fivem#ped selector#character menu#peds#roleplay

Keep reading