# How To Add Admins to Your FiveM Server (/docs/fivem/adding-admins)



FiveM uses an ace permissions system to manage admin access. This allows you to give specific players elevated privileges on your server.

<div className="fd-steps">
  <div className="fd-step">
    Find the Player's Identifier [#1-find-the-players-identifier]

    You need the player's FiveM identifier. The most common identifiers are:

    * **Steam Hex ID** - Looks like `steam:110000xxxxxxxxx`
    * **Discord ID** - Looks like `discord:123456789012345678`
    * **License** - Looks like `license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`

    Players can find their Steam Hex ID at [SteamID.io](https://steamid.io/) by converting their SteamID64 to hexadecimal.
  </div>

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

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your FiveM server. In the sidebar, click **Files**.
  </div>

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

    Open the `server.cfg` file.
  </div>

  <div className="fd-step">
    Add Admin Permissions [#4-add-admin-permissions]

    Add the following lines to your `server.cfg`:

    ```
    # Add the player to the admin group
    add_principal identifier.steam:110000xxxxxxxxx group.admin

    # Give the admin group all permissions
    add_ace group.admin command allow
    add_ace group.admin command.quit deny
    ```

    Replace `steam:110000xxxxxxxxx` with the player's actual identifier.
  </div>

  <div className="fd-step">
    Set Up Permission Groups (Optional) [#5-set-up-permission-groups-optional]

    You can create custom permission groups for different admin levels:

    ```
    # Create moderator group
    add_ace group.moderator command.kick allow
    add_ace group.moderator command.ban allow

    # Create admin group with full access
    add_ace group.admin command allow

    # Add players to groups
    add_principal identifier.steam:110000xxxxxxxxx group.admin
    add_principal identifier.steam:110000yyyyyyyyy group.moderator
    ```
  </div>

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

    Save the file and restart your server from the **Console** page.

    > 📝 **Note:** If you are using a framework like ESX or QBCore, admin permissions may be managed differently through the framework's built-in admin system or a resource like vMenu or EasyAdmin.

    > 💡 **Tip:** You can also manage permissions through [txAdmin](/docs/fivem/txadmin) if it is available on your server.
  </div>
</div>
