LonexOne

Import game permissions from a config

Paste your DiscordAcePerms config.lua and your permissions.cfg, check what LonexOne found, and add it to the board in one go. Or start an empty board from a template.

Mechanics Updated 12 Nov 2026 3 min read
On this page

If your server already gives permissions with DiscordAcePerms and a permissions.cfg, you don't have to make the groups again by hand.

Import#

  1. Click Game permissions under Mechanics, then Import config at the top.
  2. Paste your DiscordAcePerms config.lua into the first box, and the add_ace and add_principal lines from your permissions.cfg or server.cfg into the second. To bring over DiscordVehiclesRestrict, DiscordWeaponPerms or DiscordPedPerms, paste the script's server.lua and client.lua into the third. You can fill in just one box. See Lock vehicles, weapons and peds.
  3. Click Preview. Nothing changes yet.
  4. Check what was found. Each group shows the Discord roles that get it and its permissions. adds to your group means a group with that name in game is already on your board, and the import adds to it.
  5. Click Import. The groups are saved and reach the game straight away.

LonexOne never runs what you paste. It only looks for role and group pairs in config.lua, and reads permissions.cfg one line at a time.

What it does with each line#

In your files On the board
{123456789012345678, "group.moderator"} in roleList The Discord role is added to Who gets it for group.moderator.
{"Moderator", "group.moderator"} in roleList The same, finding the role in your Discord server by name.
add_ace group.moderator vMenu.NoClip allow vMenu.NoClip is added to What it can do.
add_principal group.admin group.moderator group.admin also gets everything group.moderator can do. The board keeps groups side by side, not inside each other.
add_principal identifier.discord:... group.admin Left out. Give that player a role instead.
add_ace builtin.everyone ... Left out. Keep it in server.cfg, or make a group for Everyone in the Discord.
... deny Left out. The board only gives permissions.
roleList and restrictedVehicles, restrictedWeapons or restrictedPeds Each role becomes a group that can use the items at the same place in the list, or adds them to the group that already has that role.

The preview lists everything it left out, and any role it couldn't find in your Discord server.

After importing#

Take the lines you imported out of your permissions.cfg and remove DiscordAcePerms from server.cfg, so players don't get the same groups twice. Then restart the server.

Templates#

On an empty board, Templates at the top fills it with a starting set:

  • Basic RP server: Owner, Admin and Moderator, everyone on duty in the CAD with emergency vehicles, and civilians for everyone in the Discord.
  • vMenu staff setup: Admin, Moderator and Trial Moderator with the vMenu tools that fit each, and player basics for everyone in the Discord.

The owner and admins of your website get the top groups. Drag your own Discord roles onto the others, then click Save.

See also

Can't find what you need?

Open a ticket in our Discord and someone from the team will help. Found a bug, or missing a feature? Tell us on the feedback board.

Ask on Discord