Notify

Functions

push

Pushes a notification to the queue.

---@param title string
---@param desc string
---@param options? { time: number, icon: notify.icon }
function notify.push(title, desc, options?): nil

clear

Clears the notify queue.

function notify.clear(): nil

Constants

icon

notify.icon.info
notify.icon.modder
notify.icon.player_join
notify.icon.player_leave
notify.icon.protections
notify.icon.spawner
notify.icon.hotkey
notify.icon.hazard
notify.icon.player_spawn
notify.icon.spoofing
notify.icon.join_failed
notify.icon.join_blocking
notify.icon.tracking

Example

notify.push('My Script', 'Test from my script!', { time=10000, icon=notify.icon.hazard })
notify.push('My Script', 'Test from my script!') -- defaults to { time=6000, icon=notify.icon.info }