Skip to content

TPZ-CORE/tpz_notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPZ-CORE Notify

Installation

  1. When opening the zip file, open tpz_notify-main directory folder and inside there will be another directory folder which is called as tpz_notify, this directory folder is the one that should be exported to your resources (The folder which contains fxmanifest.lua).

  2. Add ensure tpz_notify before tpz_core in the resources.cfg or server.cfg, depends where your scripts are located.

Developers

Client Trigger

-- @param title
-- @param message
-- @param icon (icon name directly from img/types)
-- @param notificationType ("success", "error", "info")
-- @param duration
TriggerEvent("tpz_notify:sendNotification", "Mailbox Notification", "This is a notification", "mail", "info", 15)

The following event is called from Client to Server to send a notification on the selected target player id.

-- @param title
-- @param message
-- @param icon (icon name directly from img/types)
-- @param notificationType ("success", "error", "info")
-- @param duration
TriggerServerEvent("tpz_notify:sendNotificationTo", targetId, "Mailbox Notification", "This is a notification", "mail", "info", 15)

Server Trigger

-- @param title
-- @param message
-- @param icon (icon name directly from img/types)
-- @param notificationType ("success", "error", "info")
-- @param duration
TriggerClientEvent("tpz_notify:sendNotification", source, "Mailbox Notification", "This is a notification", "mail", "info", 15)

The following event is called from Server to Server to send a notification on the selected target player id.

-- @param title
-- @param message
-- @param icon (icon name directly from img/types)
-- @param notificationType ("success", "error", "info")
-- @param duration
TriggerEvent("tpz_notify:sendNotificationTo", targetId, "Mailbox Notification", "This is a notification", "mail", "info", 15)

Screenshot Displays

image

About

TPZ-CORE Notify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published