Configuration
All settings from shared/config.lua and server/config.lua.
Overview
| Key | Default | Description |
|---|---|---|
Config.Framework | 'esx' | 'esx', 'qbcore' or 'ox' |
Config.Locale | 'en' | Language, file in locales/ (en, de) |
Config.Debug | false | Extra info messages in the console. Errors and update notices always appear. |
Config.Notify | ox_lib | Notifications, see below |
Config.AccessLog.retentionDays | 90 | Days the log is kept (1–3650) |
Config.Commands.openHub.name | 'lumina' | Name of the hub command |
Config.Commands.openHub.groups | admin, superadmin, god | Groups of the hub admins |
Hub admins
Config.Commands = {
openHub = {
name = 'lumina',
groups = {
'admin',
'superadmin',
'god'
}
}
}
Hub admins may open every module and are the only ones who can manage Access and see the Log. The check happens on the server.
Notifications
By default the core uses ox_lib. For your own system:
Config.Notify = {
useCustom = true,
duration = 5000,
custom = function(data)
-- data.title, data.description, data.duration
-- data.type: 'success' | 'error' | 'info' | 'warning'
exports['my_notify']:Send(data.title, data.description, data.type, data.duration)
end
}
Log retention
Config.AccessLog = {
retentionDays = 90
}
Older entries are deleted at server start and every day at 04:30 (server time). Whole numbers from 1 to 3650 are allowed; any other value stops the start with an error message.
Discord log
ServerConfig.Logs = {
webhook = '', -- Discord webhook, empty = no log
username = 'Lumina Logs'
}
Every saved access change is sent with the admin (name and licence), the module and the groups and players before → after.
Webhooks belong in
server/config.luaonly. Files inshared/are sent to every player.