![[Paid][Standalone/ESX/QBCore/NDCore] Discord role sync main image](https://forum-cfx-re.akamaized.net/original/4X/a/4/9/a493327fc93995ac29f796400693ad9c32fb5ac1.png)
Price
UnknownA script by XanderWP
Price
UnknownThis script allows members of your Discord server to automatically receive roles depending on the access on the server.
This will be a great addition to RP servers, so that players like cops, medics, and others can automatically get roles on the server that would open access to faction channels. This is just one example where this system can be applied.
Buy: Tebex store
Check my other works
Twitch Reward System
Speed cameras
Reward Hunt System
Map Board System
- Standalone script
- Support ESX, QBCore and NDCore Frameworks
- Simple configuration
- Framework jobid or fivem permission (IsPlayerAceAllowed) check
- The definition takes place according to the Discord profile associated with FiveM client
You can use the functions of this resource in other modules through the system of exported functions
- getPlayerDiscordRoles(source: number, cb: void): void → Get current player discord roles
- getPlayerDiscord(source: number, cb: void): string → Get player discord
- setDiscordToken(token: string): void → Set bot token
Config = {}
Config.Token = "" -- Bot secret token
Config.SyncIntervalMinutes = 5 -- Sync interval in minutes
Config.StorageFilename = "players" -- filename for storage data
Config.GuildID = "336710648224546816" -- Discord guild identifier (server id)
Config.Roles = {
{
["role"] = "1062792257759096832", -- Discord role ID
["ace"] = "admin", --- Give role is Player has permission (IsPlayerAceAllowed check)
["job"] = "police" --- Give role is Player has job/role in framework system (Depends on current framework)
},
}
Code accessible | Config |
Subscription-based | No |
Lines | ~400 |
Requirements | ESX, QBCore, NDCore optional |
Support | Yes |
Future Updates | Free |
No approved reviews found for this script yet.