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, unban, shownames, repaircar
-- Example :
-- default = 'myDefaultWebhook',
-- teleport = 'myWebhook',
-- job = 'myOtherWebhook',
},
}Permissions
| Value | Type | Description |
|---|---|---|
| * | string | Grants all permissions |
Admin Actions
| Value | Type | Description |
|---|---|---|
| admin | string | Grants all admin actions related permissions |
| admin.invincible | string | Admin can be invincible |
| admin.invisible | string | Admin can be invisible |
| admin.noclip | string | Admin can noclip |
| admin.tomarker | string | Admin can teleport to a marker |
| admin.tocoords | string | Admin can teleport to specific coordinates |
| admin.spawncar | string | Admin can spawn cars |
| admin.repaircar | string | Admin can repair cars |
| admin.displaycoords | string | Admin can display his coordinates |
| admin.displaynames | string | Admin can display players' names |
| admin.setped | string | Admin can change his own ped |
| admin.announce | string | Admin can post server announces |
| admin.sendchatmessage | string | Admin can send chat messages |
Players Management
| Value | Type | Description |
|---|---|---|
| players | string | Grants all players related permissions |
| players.view | string | Admin can view the whole data |
| players.goto | string | Admin can teleport to players |
| players.bring | string | Admin can bring players |
| players.heal | string | Admin can heal players |
| players.revive | string | Admin can revive players |
| players.kill | string | Admin can kill players |
| players.freeze | string | Admin can freeze players |
| players.warn | string | Admin can warn players |
| players.message | string | Admin can send a message to players |
| players.inventory | string | Admin can manage players inventory |
| players.spectate | string | Admin can spectate players |
| players.kick | string | Admin can kick players |
| players.ban | string | Admin can ban players |
| players.job | string | Admin can set players job |
| players.money | string | Admin can manage players money |
| players.unban | string | Admin can unban players he banned |
| players.unbanall | string | Admin can unban every player |
Reports Management
| Value | Type | Description |
|---|---|---|
| reports | string | Grants all reports related permissions |
| reports.assign | string | Admin can assign himself reports |
| reports.close | string | Admin can solve reports |
| reports.sendmessage | string | Admin can send messages in reports chats |