Lumina Portal

Free to read, no accountVersion 2.1.1

Configuration

All settings from shared/config.lua and server/config.lua.

Overview

KeyDefaultDescription
Config.Framework'esx''esx', 'qbcore' or 'ox'
Config.Locale'en'Language, file in locales/ (en, de)
Config.DebugfalseExtra info messages in the console. Errors and update notices always appear.
Config.Notifyox_libNotifications, see below
Config.AccessLog.retentionDays90Days the log is kept (1–3650)
Config.Commands.openHub.name'lumina'Name of the hub command
Config.Commands.openHub.groupsadmin, superadmin, godGroups of the hub admins

Hub admins

shared/config.lua
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:

shared/config.lua
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

shared/config.lua
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

server/config.lua
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.lua only. Files in shared/ are sent to every player.