Usage

Client Side

Export

exports['gusti-iosnotify']:SendAlert(icon, appname, title, message, time, sound)

Usage Example

exports['gusti-iosnotify']:SendAlert('fas fa-info-circle text-info','App Name',"INFORMATION", "Notification message", 5000, 'notify1')
exports['gusti-iosnotify']:SendAlert('far fa-check-circle text-success','Server',"SUCCESS", "Fill in the notification message", 5000, 'notify1')
exports['gusti-iosnotify']:SendAlert('fas fa-exclamation-circle text-danger','Server',"ERROR", "Fill in the notification message", 5000, 'notify1')

Server Side

TriggerClientEvent('gusti-iosnotify:show', source, {
    icon = icon,
    appname = appname,
    title = title,
    message = message,
    time = time,
    sound = sound
})

Usage Example

TriggerClientEvent('gusti-iosnotify:show', source, {
    icon = 'fas fa-info-circle text-info',
    appname = 'App Name',
    title = 'Title Here',
    message = 'Notification message',
    time = 5000,
    sound = 'notify1'
})

Icon

You can look for icon references from font-awesome

Type Text

There can use type text like

  • text-primary

  • text-secondary

  • text-info

  • text-success

  • text-danger

  • text-warning

  • and many more

You can see the type text here

Sound

There are three types of default notification sounds from gusti-iosnotify

  • default

  • notify1

  • notify2

you can add new sound to html/sound

Last updated