message-minusNotifications

circle-check

You can easily add your own notification system. To do this, go to editable/notif/custom.lua and set up your system using an event. Here is the configuration of our notification system integrated into PLocker.

-----------------------------------------------
-- PNotif Notification System
-- Système de notifications PNotif
-----------------------------------------------

Notify = {}

function Notify.Send(playerId, message, title, type, duration)
    if not playerId then
        print('^1[PLocker] Notify.Send: playerId est nil !^0')
        return
    end

    TriggerClientEvent('pnotif:sendNotification', playerId, {
        title = title or 'Notification',
        message = message or '',
        type = type or 'info',
        duration = duration or 4000
    })
end

And here is the custom.lua file, where you can integrate your own system.

Last updated