Game Role Sync DS

7.99 USD

Game Role Sync With Discord System

Description 💬

This script will allow your players to get a game role (job/gang) on the server depending on what roles they have in discord


Features 🗒️

  • Standalone script
  • For QBCore framework
  • Simple configuration
  • Job and Gang support



Example config ⚙️


Config = {}

Config.LogPrints = false
Config.Token = "SECRET_TOKEN" -- Bot secret token
Config.SyncIntervalMinutes = 5 -- Sync interval in minutes

Config.GuildID = "1063326584469209159" -- Discord guild identifier (server id)
Config.Jobs = {
    {
        ["role"] = "1220922284735205379",
        ["job"] = "police",
        ["rank"] = 1,
    },
}

Config.JobBack = {
    job = 'unemployed',
    rank = 0
}

Config.Gangs = {
    {
        ["role"] = "1220936809853222984",
        ["gang"] = "lostmc",
        ["rank"] = 1,
    },
}

-- Fivem permissions list
--[[ 
    for correct work you need to add 3 commands in your server.cfg file
    --
    add_ace resource.discord_game_role_sync command.add_principal allow
    add_ace resource.discord_game_role_sync command.remove_principal allow
    add_ace resource.discord_game_role_sync command.add_ace allow
    --
]]
Config.Principal = {
    {
        ["role"] = "1225569159879065661",
        ["ace"] = "qbcore.god",
    },
}

Config.GangBack = {
    gang = 'none',
    rank = 0
}


Other data



Code accessibleConfig
Subscription-basedNo
Lines~200
RequirementsQBCore
SupportYes
Future UpdatesFree