Configuration

The configuration file can be found in the root folder of the project with the name config.lua.

Default Configuration

Here is an example of the complete default config.lua file for Ultimate Admin Panel:

config.lua
Config = {}
 
Config.Language = "en" -- Language available by default : en | fr
Config.Multichar = true -- Set to true if you use ESX/QB Multicharacter
Config.Currency = "$" -- Your server currency
 
Config.Keys = { -- Keys used to open different menus
    Admin = 'H', -- Admin menu
    Reports = 'J', -- Player's reports menu
    Noclip = 'N' -- Toggle noclip
}
 
Config.Permissions = { -- Permissions applied for each group, please see https://redcorp.studio/ultimate-admin-panel/configuration#permissions for more details
    admin = {
        "*",
    },
 
    helper = {
        "players.view",
        "admin"
    }
}
 
Config.AdminCarPlate = 'RedCorp' -- Default admin car plate used for /car, set to nil to disable
Config.AdminCarModel = 'adder' -- Default admin car model used for /car
 
Config.DiscordLogs = {
    EnableDiscordLogs = false, -- Turn on/off discord logs
    Webhooks = {
        default = '',  -- Replace this with your Discord webhook
        -- You can set a default webhook and assign a different one for specific actions
        -- If no webhook is specified for an action, the default one will be used
        -- Possible actions : noclip, warn, message, money, notes, job, gang, inventory, spectate, reports, onduty, announce, car, freeze, heal, invincible, invisible, kill, ped, teleport, ban, kick
        -- Example :
        -- default = 'myDefaultWebhook',
        -- teleport = 'myWebhook',
        -- job = 'myOtherWebhook',
    },
}

Permissions

ValueTypeDescription
*stringGrants all permissions

Admin Actions

ValueTypeDescription
adminstringGrants all admin actions related permissions
admin.invinciblestringAdmin can be invincible
admin.invisiblestringAdmin can be invisible
admin.noclipstringAdmin can noclip
admin.tomarkerstringAdmin can teleport to a marker
admin.tocoordsstringAdmin can teleport to specific coordinates
admin.spawncarstringAdmin can spawn cars
admin.repaircarstringAdmin can repair cars
admin.displaycoordsstringAdmin can display his coordinates
admin.displaynamesstringAdmin can display players' names
admin.setpedstringAdmin can change his own ped
admin.announcestringAdmin can post server announces
admin.sendchatmessagestringAdmin can send chat messages

Players Management

ValueTypeDescription
playersstringGrants all players related permissions
players.viewstringAdmin can view the whole data
players.gotostringAdmin can teleport to players
players.bringstringAdmin can bring players
players.healstringAdmin can heal players
players.revivestringAdmin can revive players
players.killstringAdmin can kill players
players.freezestringAdmin can freeze players
players.warnstringAdmin can warn players
players.messagestringAdmin can send a message to players
players.inventorystringAdmin can manage players inventory
players.spectatestringAdmin can spectate players
players.kickstringAdmin can kick players
players.banstringAdmin can ban players
players.jobstringAdmin can set players job
players.moneystringAdmin can manage players money
players.unbanstringAdmin can unban players he banned
players.unbanallstringAdmin can unban every player

Reports Management

ValueTypeDescription
reportsstringGrants all reports related permissions
reports.assignstringAdmin can assign himself reports
reports.closestringAdmin can solve reports
reports.sendmessagestringAdmin can send messages in reports chats