Skip to content

NiTrO0FuN/gnotifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Garry's mod addon that replaces notifications for DarkRP events.


Easy to use serverside API to send a notification:

Send a notification to a particular player

  GNotifications.sendNotification(ply, nType, message, playSound)
Parameter Type Description
ply Entity Required. Player to send notification to
nType Number Required. Notification type
message string Required. Notification content
playSound Number Optional=1. 0 to mute the sound

Broadcast a notification to all players

  GNotifications.sendBroadcastNotification(nType, message, playSound)
Parameter Type Description
nType Number Required. Notification type
message string Required. Notification content
playSound Number Optional=1. 0 to mute the sound

Notification types

GNotifications.TYPE_INFORMATION
GNotifications.TYPE_ERROR
GNotifications.TYPE_IMPORTANT
GNotifications.TYPE_VALIDATION
GNotifications.TYPE_NORMAL