This script will allow your players to get a game role (job/gang) on the server depending on what roles they have in discord
- Standalone script
- For QBCore framework
- Simple configuration
- Job and Gang support
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
}
| Code accessible | Config |
| Subscription-based | No |
| Lines | ~200 |
| Requirements | QBCore |
| Support | Yes |
| Future Updates | Free |