🔧Installation

Download our scripts 👉 Keymaster

Dependencies

Installation

  1. Download LuxuDiscordBot and extract it into your server's resources folder

  2. Create a discord bot. Check Discord

  3. Open bot.lua and change every value. Check Discord

  4. Open Config.lua and make all the changes needed. ⚠️ Don't skip Config.Permissions | Permissions

Add this to your server.cfg

server.cfg
add_ace resource.luxudiscord command allow

Start the resource in this order

server.cfg
# if you have esx
ensure es_extended
#if you have qbcore
ensure qb-core

ensure ox_lib
ensure LuxuModules
ensure LuxuDiscordBot
# If you have LuxuAdmin
ensure LuxuAdmin

Permissions

Get the role ids

Config.lua

Let's give our admins full permission and access to reports.

  • set fullpermission = true

  • set tickets = true

Config.Permissions = {
      {
            name = "Admin",
            role_id = "1103798716227403880", -- right click on the role and copy id
            fullpermission = true,
            tickets = true,                  -- Can access player reports
            commands = {}
      },

}

Giving specific commands to Mods and access to reports

  • set fullpermission = false

  • set tickets = true

  • give commands

Config.Permissions = {
      {
            name = "Admin",
            role_id = "1103798716227403880", -- right click on the role and copy id
            fullpermission = true,
            tickets = true,                  -- Can access player reports
            commands = {}
      },
      {
            name = "Moderator",
            role_id = "1103794241553403880", -- right click on the role and copy id
            fullpermission = false,
            tickets = true,
            commands = {
                  'playerlist',
                  'player',
                  'close',
                  'reportinfo',
                  'revive',
                  'kick',
                  'screenshot',
                  'online'
            }
      },

}

Discord

Learn how to create a bot and get the values for bot.lua

  1. Enable Developer Mode

  2. Create a new discord bot. Create new bot

Bot.lua

Watch this quick video guide:

Find where and how to get the values for bot.lua file

Invite your bot

"GUILD_ID" 👇

Create a new Category in your discord server and copy the id

"LogWebhook"

Create a new channel and then create a webhook and copy it.

Tebex Secret

  1. Click EDIT

  2. Click COPY on the Secret Key

Update bot.lua

After you found all your values, update this file 👇

Last updated