
Discord Whitelist System
Most serious RP servers are whitelisted - players must apply and be approved before joining. The flow:
- Player submits application in Discord form or channel
- Admin reviews and adds Discord role (e.g.
Whitelisted) - Players with the Discord role can join the server
Implementation with the Discord-Whitelisting FiveM resource:
-- resource: discord_whitelist
-- server.cfg:
set discord_bot_token "your_bot_token"
set discord_guild_id "your_guild_id"
set discord_required_role "Whitelisted"
On connection attempt, the resource checks the player's linked Discord account for the required role. No role = denied entry.
Linking Discord to In-Game Identity
The DiscordLink resource creates a persistent identifier mapping Discord ID to FiveM licence:
# server.cfg
set discord_token "your_bot_token"
set discord_guildid "your_guild_id"
Once linked, other resources can query a player's Discord roles server-side, enabling:
- Auto-grant of job start if player has the job's Discord application role
- Automatic ban if Discord membership is lost (left server or banned)
- Job application workflow entirely in Discord, reflected in-game automatically
Job Application Automation
With Discord integration:
- Player applies for LSPD via Discord (fills out form in application channel)
- Admin approves → manual role assignment OR bot auto-approves after conditions met
- Discord bot sends RCON command to grant job in-game
- Player next login: job is automatically assigned via role check
This workflow eliminates the admin workload of manually granting jobs per player.
Log Channel Integration
Pipe in-game logs to Discord channels:
- Admin logs - All admin commands are posted to a private Discord channel
- Session logs - Player joins/disconnects with playtime
- Death logs - All player deaths with cause and suspects
- Economy logs - Large money transactions flagged automatically
The visibility of these logs both deters admin abuse and makes moderation decisions reviewable by the full staff team.