GUIDES
Guides & Tutorials

How to Set Up FiveM Server Permissions and ACE

July 13, 2025 · 4 min read

Setting up a FiveM server can be a rewarding experience, particularly when it comes to crafting a unique roleplay environment. One of the key components in this process is managing permissions through the Access Control Entry (ACE) system. In this guide, you will learn how to set up FiveM server permissions and ACE, ensuring that your server runs smoothly and securely.

Understanding the ACE System

Before diving into the configuration, it’s essential to grasp what ACE is and why it matters. The ACE system in FiveM allows you to set permissions for various player roles, enabling or restricting access to certain features or resources. Here are the foundational elements you’ll need:

  • Groups: Defined roles like admin, moderator, or player.
  • Permissions: Specific access rights to commands or resources.

This structured permission system is crucial for maintaining an organized and functional server, especially when utilizing frameworks like ESX, QBCore, or QBox.

Initial Setup in server.cfg

The first step in setting up your permissions and ACE involves editing your server.cfg file, which is located in your server’s root directory. This file manages various server settings, including ACE permissions.

Step 1: Enable ACE

  1. Open server.cfg in a text editor.
  2. Add the following line to enable ACE:
    setr ace_usesystem true
    

Step 2: Define Groups and Permissions

Define your groups by adding lines similar to these:

add_ace group.admin command.all allow
add_ace group.moderator command.some allow
add_ace group.player command.none deny
  • The above lines create admin, moderator, and player groups with varying permissions. Replace command.all, command.some, and command.none with specific commands as needed.

Configuring Permissions in fxmanifest.lua

Next, you’ll want to ensure that your resources correctly reference the permissions you've set. Open your fxmanifest.lua file for each script or resource that requires specific permissions. Here’s how:

Step 3: Add Permissions to Resources

Inside the fxmanifest.lua, you’ll typically see a section for client and server scripts. You can define permissions like this:

this_is_a_map 'yes'

client_scripts {
   'client.lua'
}

server_scripts {
   'server.lua'
}

-- Add permissions
files {
   'permissions.cfg'
}

Make sure to create a permissions.cfg file in the resource folder that outlines the specific permissions required for that resource.

Adding Custom Roles

If you’re using a framework such as ESX or QBCore, you can add custom roles for your players to take advantage of. Here’s how:

Step 4: Create Custom Roles

To create custom roles, add entries in your server.cfg under the ACE section:

add_ace group.customrole command.special allow

You can assign this role to players by using the following command in the server console:

add_principal identifier.steam:YOUR_STEAM_ID group.customrole

This will allow specific players access to special commands or resources that regular players do not have.

Troubleshooting Common Issues

As with any configuration, you may encounter issues while setting permissions and ACE. Here are some of the common problems and their solutions:

Issue 1: Permissions Not Working

  • Check your syntax: Ensure there are no typos in server.cfg or fxmanifest.lua.
  • Restart your server: Changes won’t take effect until you restart.

Issue 2: Players Can’t Use Commands

  • Verify permission assignment: Confirm that the player has been added to the correct group.
  • Look at the logs: Check for any errors in your server’s console output.

Best Practices for Managing Permissions

To maintain a secure and functional server, consider these best practices:

  • Regular Audits: Periodically review your permissions and roles to eliminate redundancies.
  • Backup your Configurations: Before making significant changes, always back up your server.cfg and fxmanifest.lua files.
  • Educate Players: Make sure your players understand their roles and what commands they can use.

Checklist for Setting Up Permissions

  • Edit server.cfg to enable ACE.
  • Define groups in server.cfg.
  • Update fxmanifest.lua with permissions.
  • Create permissions.cfg for resources.
  • Test each role for correctness.

Frequently Asked Questions

Q1: Can I use ACE with other FiveM frameworks?
A1: Yes, ACE can be integrated with any framework as long as the resource scripts reference the appropriate permissions.

Q2: What happens if I set permissions incorrectly?
A2: Incorrect permissions can lead to players accessing features they shouldn’t, or being denied access to essential commands.

Q3: How do I check if the ACE system is enabled?
A3: You can check your server console on startup, which will indicate whether ACE is activated or not.

Q4: Can I export group permissions to another server?
A4: Yes, you can copy your server.cfg and resource permissions.cfg files to replicate permissions on another server.

Q5: Are there pre-made permission sets available?
A5: Various scripts in the FiveM community come with recommended permission settings; visit our scripts section for resources.

#fivem#permissions#ace#guide#roleplay#server

Keep reading