Using Multiple CFG Files
FiveM's exec command lets one configuration file execute another configuration file.
Simple structure
server-data/
├── server.cfg
├── permissions.cfg
├── voice.cfg
└── resources/
Then load them from server.cfg:
exec permissions.cfg
exec voice.cfg
What belongs in another CFG?
A good candidate is a large block that has one purpose:
- ACE/principal permissions
- voice configuration
- a resource with a very large set of convars
- a server-only secrets file that is excluded from Git
Normal ensure lines can stay in server.cfg if that is easier for you to follow.
Permissions example
server.cfg:
exec permissions.cfg
ensure KruigerHandsUp
ensure KruigerDV
permissions.cfg:
# Administrators
add_ace group.admin command allow
add_ace group.admin command.quit deny
The exact ACE names for a resource must come from that resource's documentation.
Troubleshooting
If moving a setting breaks something:
- Confirm the filename is correct.
- Confirm the file is in the path expected by
exec. - Check the console for an execution error.
- Check that the CFG is loaded before a resource that requires the value at startup.
- Temporarily move the setting back to
server.cfgto isolate whether the problem is file loading or the setting itself.
Document status
Last reviewed: September 2026
Version note: Use the instructions that match your installed product/resource version. When behavior differs from your release, check its release notes before changing production configuration.
