NLRPPerms - Permission System | Automatic Discord Permission Sync
Discord Perms is a professional, production ready permission management resource that bridges your Discord server roles directly into FiveM, syncing them to ACE & NLRP (custom) permissions, enforcing whitelisting, blacklisting players, and clean in game UI Panels to view them all.
What is this Permissions System?
This Permission system replaces the guesswork of manual ACE permission management by automatically syncing Discord roles to in game permissions in real time (only “nlrp” Perms). When a player joins, their Discord roles are fetched, mapped to your configured permission nodes.
Features
Discord → Permission Sync
- Automatically maps Discord role IDs to custom permission nodes (e.g.
Owner,Management,god) - Syncs on join, on a configurable auto update, and via a manual
/refreshpermscommand (only “nlrp” permissions can be updated in live time.) - Fully supports named role aliases, no need to memorize Discord IDs in every resource
Dual Permission Mode
- Choose between
ace,nlrp, orbothpermission evaluation modes - When using
both, configure whether permissions require either or all sources to pass - Fully compatible with existing ACE-based resources — NLRP
Perms works alongside them, not against them
Automatic Role Refresh Loop
- Configurable refresh interval (default: 10 minutes) with smart skip logic to avoid redundant API calls
- Batched fetching with delay between batches to stay Discord API-friendly
- Separate cache TTLs for auto-loop vs. join/manual fetches
Whitelist System
- Enable/disable server whitelisting with a single config toggle
- Define allowed roles by name or Discord ID
- Custom denial messages — including a separate message for players without Discord linked
Blacklist System
- Block specific Discord roles from joining with per-role custom denial messages
- Fallback default message if no custom reason is set
- Togglable without touching individual role configs
NUI Panels
/myperms— Players can view their own active permissions in a clean UI panel/perms— Staff command to browse all online players and their permission sets- Discord link popup for players who haven’t linked their Discord or aren’t in your guild
- All panels fully configurable — commands, titles, and access permissions
Logging & Debugging
- Granular debug flags: HTTP responses, ACE grant/removal, access decisions, and more
- Per-command console logging with individual toggles for auto-loop, manual, self, and admin refreshes
- Errors always surface regardless of debug mode
Configuration Highlights
PermissionMode = "both" -- "ace" | "nlrp" | "both"
PermissionBothRule = "any" -- "any" | "all"
PermissionApplyAce = true -- write ACE principals from Discord roles
RoleRefresh = {
Enabled = true,
IntervalSeconds = 600, -- auto-refresh every 10 minutes
BatchSize = 10, -- staggered to avoid API bursts
CommandEnabled = true,
Command = "refreshperms",
}
Permissions = {
["Everyone"] = {"Everyone"}, -- This will be given to everyone regardless of discord linked/connection to guild
["DISCORD_ROLE_ID"] = {"god", "Owner"},
["DISCORD_ROLE_ID"] = "SeniorAdmin",
}
WhitelistEnabled = true
BlacklistEnabled = true
Requirements
- A Discord Bot Token (setup guide)
- Discord linked to FiveM for your players (linking guide)
Purchase
Script is available on Tebex.
Support
For setup support, questions, or bug reports, please reach out via our Discord.
Built and maintained by the Northern Lights Roleplay Development Team - Thunder.
| Code is accessible | No |
| Subscription-based | No |
| Lines | 2,300 |
| Requirements | Discord Bot |
| Support | Yes |


