SimpleDevelopments Docs
Simple Store License Generator Our Discord
Our docs are still under construction - Expect new changes in the future!
Paid Scripts IconPaid Scripts

3 - Export Setup

By Fadin_laws 1 min 27

SimpleNotifyV2 provides both client-side and server-side exports for displaying modern notifications.

Client-Side Usage:

exports.SimpleNotifyV2:Notify({
    type = 'success',
    title = 'Success',
    description = 'This is a client-side notification.',
    duration = 5000
})

NotifyTemplate:

exports.SimpleNotifyV2:NotifyTemplate('success', {
    description = 'This uses the success template.',
    duration = 5000
})

Server-Side Usage:

exports.SimpleNotifyV2:NotifyPlayer(source, {
    type = 'info',
    title = 'Information',
    description = 'This is a server-side notification.',
    duration = 5000
})

NotifyTemplate:

exports.SimpleNotifyV2:NotifyPlayerTemplate(source, 'warning', {
    description = 'This uses the warning template.',
    duration = 5000
})

Notification Options:

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

Example Usage:

RegisterCommand('testnotify', function()
    exports.SimpleNotifyV2:Notify({
        type = 'success',
        title = 'Success',
        description = 'SimpleNotifyV2 is working correctly.',
        duration = 5000
    })
end, false)