Exports and Events
exports['PNotifv2']:sendNotification({
message = 'Your message here',
type = 'info',
title = 'Custom Header',
duration = 5000
})TriggerClientEvent('pnotifv2:sendNotification', source, {
message = 'Your message here',
type = 'info',
title = 'Custom Header',
duration = 5000
})RegisterCommand('notifyServerTest', function(source, args, rawCommand)
TriggerClientEvent('pnotifv2:sendNotification', source, {
title = '~r~Colored~s~ ~g~Title~s~',
message = 'This is a test with a ~b~colored title~s~ sent from the server',
type = 'success',
duration = 5000
})
TriggerClientEvent('pnotifv2:sendNotification', source, {
title = '~y~Warning~s~',
message = '~o~Important~s~ message with a ~bold~bold title~s~',
type = 'error',
duration = 5000
})
TriggerClientEvent('pnotifv2:sendNotification', source, {
title = '~lg~Great~s~ ~bold~Success~s~',
message = 'Operation completed successfully with a ~g~colored title~s~',
type = 'info',
duration = 5000
})
end)Client
Server
Client
Server
Last updated