Export / Event

These are the available export and event for our Notify script

Client-Side

Export: exports['cobra-notify']:Notify('type', 'title', 'message', time)

Example: exports['cobra-notify']:Notify('info', 'Client Test', 'This is a test notification for client-side!', 5000)

Explanation of the parameters:

type: The notification type (required)

title: The notification title (required)

message: The notification message (required)

time: The notification time (required)

Server-Side

Export: TriggerClientEvent('cobra-notify:notify', source, 'type', 'title', 'message', time)

Example: TriggerClientEvent('cobra-notify:notify', source, 'warning', 'Server Test', 'This is a test notification for server-side!', 5000)

Explanation of the parameters:

source: The player source you wish to show notification (required)

type: The notification type (required)

title: The notification title (required)

message: The notification message (required)

time: The notification time (required)

Last updated