# How To Change Max Players on Your RedM Server (/docs/redm/max-players)



import { Step, Steps } from 'fumadocs-ui/components/steps';

You can adjust the maximum number of players on your RedM server through the startup parameters or the `server.cfg` file.

Method 1: Startup Parameters [#method-1-startup-parameters]

<div className="fd-steps">
  <div className="fd-step">
    Open the XGamingServer Panel [#1-open-the-xgamingserver-panel]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com).
  </div>

  <div className="fd-step">
    Stop Your Server [#2-stop-your-server]

    Make sure your server is **stopped** before making changes.
  </div>

  <div className="fd-step">
    Go to Startup [#3-go-to-startup]

    In the sidebar, click **Startup**.
  </div>

  <div className="fd-step">
    Change the Max Players Value [#4-change-the-max-players-value]

    Find the **Max Players** or **sv\_maxclients** field and enter the desired number of player slots.
  </div>

  <div className="fd-step">
    Start Your Server [#5-start-your-server]

    Click **Start** to apply the changes.
  </div>
</div>

Method 2: Edit server.cfg [#method-2-edit-servercfg]

<div className="fd-steps">
  <div className="fd-step">
    Open Files [#1-open-files]

    In the sidebar, click **Files**.
  </div>

  <div className="fd-step">
    Open server.cfg [#2-open-servercfg]

    Find and click on `server.cfg` to open it in the editor.
  </div>

  <div className="fd-step">
    Change the Max Players [#3-change-the-max-players]

    Find the `sv_maxclients` line and change the value:

    ```
    sv_maxclients 32
    ```
  </div>

  <div className="fd-step">
    Save and Restart [#4-save-and-restart]

    Click **Save** and **restart** your server.

    > 📝 **Note:** The default max clients for RedM is 32. Your server plan determines how many players you can support. Higher player counts require more RAM and CPU resources.

    > ⚠️ **OneSync required for more than 32 players:** If you want to exceed 32 players, you must enable OneSync in your `server.cfg`:
    >
    > ```
    > set onesync on
    > ```
    >
    > Without it, your server will cap at 32 slots regardless of what `sv_maxclients` is set to.
  </div>
</div>
