Lumina Portal

Examples Core

Your own notification system in the core

Show messages of the core through your own notify script.

Config

lumina_core/shared/config.lua
Config.Notify = {
    useCustom = true,
    duration = 5000,
    custom = function(data)
        exports['my_notify']:Send(data.title, data.description, data.type, data.duration)
    end
}

my_notify is a placeholder for your script. data.type is success, error, info or warning.

The setting affects the messages of the core. Lumina ELS sends its messages through ox_lib.