# admin

# Introduction

In a FiveM server, managing admin permissions is crucial for maintaining order and ensuring that only authorized users have access to powerful commands. This documentation will guide you through the process of setting admin permissions in your server.cfg file.

# Prerequisites

  • Access to your server's server.cfg file.
  • A basic understanding of how to edit configuration files.

# Steps to Set Admin Permissions

# 1. Open the server.cfg File

Locate your server.cfg file in your server's root directory. You can use a text editor like Notepad, Visual Studio Code, or any other code editor to open the file.

# 2. Assign Users to Admin Groups

To assign specific users to the admin group, you will need their identifiers (usually their Steam ID or Discord ID). Add the following lines to your server.cfg:

# Assign users to admin group
add_principal identifier.steam:1234567890 group.admin
add_principal identifier.discord:1234567890 group.admin

# 3. Save Changes

After making the necessary changes, save the server.cfg file and close the text editor.

# 4. Restart the Server

For the changes to take effect, restart your FiveM server. You can do this through your server management interface or by using the command line.

# Example Configuration

Here’s an example of how your server.cfg might look after setting up admin permissions:

# Define admin groups
add_ace group.admin qbcore.god

# Assign users to admin group
add_principal identifier.steam:1234567890 group.admin
add_principal identifier.discord:1234567890 group.admin

# Conclusion

Setting admin permissions in your server.cfg file is essential for managing your FiveM server effectively. By following the steps outlined in this documentation, you can ensure that only authorized users have access to powerful commands.

For more information on permissions and roles, refer to the FiveM Documentation.