Server Exports
ShowNotification
exports.nx-notify:ShowNotification(source, data)
source: number
player's ID
data: table
message:
string
the notification messagealign?:
string
the notification alignmenttitle?:
string
the notification titletype?:
string
the notification type:info (default)
success
error
warning
icon?:
string
FontAwesome icon or https linktimeout?:
number
how many milliseconds the message shows up
For defaults value choose it in the Config
Success notification with title
local source = source
exports.nx-notify:ShowNotification(source, {
message = "This is a success notification",
type = "success",
title = "Congratulation",
})
Info notification with title and custom alignment
local source = source
exports.nx-notify:ShowNotification(source, {
message = "This is an info notification",
type = "info",
title = "Info",
align = "center"
})
Last updated