Paid Scripts
SimpleNotifyV2 provides both client-side and server-side exports for displaying modern notifications.
exports.SimpleNotifyV2:Notify({
type = 'success',
title = 'Success',
description = 'This is a client-side notification.',
duration = 5000
})exports.SimpleNotifyV2:NotifyTemplate('success', {
description = 'This uses the success template.',
duration = 5000
})exports.SimpleNotifyV2:NotifyPlayer(source, {
type = 'info',
title = 'Information',
description = 'This is a server-side notification.',
duration = 5000
})exports.SimpleNotifyV2:NotifyPlayerTemplate(source, 'warning', {
description = 'This uses the warning template.',
duration = 5000
})Property | Description |
|---|---|
type | success, error, warning, info, neutral |
title | Notification Title |
description | Notification Body |
duration | Time in miliseconds |
icon | Optional custom icon |
color | Optional accent color |
sound | Optional sound |
position | top-right, top-center, top-left bottom-right, bottom-center, bottom-left |
progress | Optional value (0-100) |
allowDuplicate | Allow duplicate notifications |
RegisterCommand('testnotify', function()
exports.SimpleNotifyV2:Notify({
type = 'success',
title = 'Success',
description = 'SimpleNotifyV2 is working correctly.',
duration = 5000
})
end, false)