Server

Server Events

Example 1: Notification to a Specific Player

TriggerClientEvent('fivemdeals_notify:sendNotification', targetPlayerId, {
    title = 'Server Message',
    message = 'Welcome to the server!',
    progress = false,
    duration = 5000,
    notifyType = 'inform'
})

Example 2: Notification to All Players

TriggerClientEvent('fivemdeals_notify:sendNotification', -1, {
    title = 'Server Announcement',
    message = 'The server will restart in 10 minutes.',
    progress = false,
    duration = 10000,
    notifyType = 'warning'
})

Example 3: Notification to the Triggering Player

TriggerClientEvent('fivemdeals_notify:sendNotification', source, {
    title = 'Personal Message',
    message = 'This message is just for you!',
    progress = false,
    duration = 5000,
    notifyType = 'success'
})

Last updated