This plugin adds customizable UI notifications. Admins and other plugins can create notifications.
You can then use this to create notifications using the CreatePopupNotification method.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.- popupnotifications.send - Allows players with permission to use chat command to send a popup message
Chat Commands
- /popupmsg "message" -- Create a notification for everyone on the server
- /popupmsg "player name" "message"` -- Create a notification for a player
Console Commands
- popupmsg.global "message" duration -- Create a notification for everyone on the server (duration is optional)
- popupmsg.toplayer "message" "player name" duration -- Create a notification for a player (duration is optional)
Configuration
The settings and options can be configured in the PopupNotifications file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Available Fonts
- daubmark.ttf
- droidsansmono.ttf
- robotocondensed-bold.ttf
- robotocondensed-regular.ttf
Developer API
To call the functions from this API your plugin needs to get the plugin instance.You can then use this to create notifications using the CreatePopupNotification method.