https://github.com/isigar/rcore_notification
rcore.cz notification script
https://github.com/isigar/rcore_notification
Last synced: over 1 year ago
JSON representation
rcore.cz notification script
- Host: GitHub
- URL: https://github.com/isigar/rcore_notification
- Owner: Isigar
- Created: 2020-09-07T11:29:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T11:33:56.000Z (almost 6 years ago)
- Last Synced: 2025-01-16T17:01:25.680Z (over 1 year ago)
- Language: CSS
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rcore_notifications
Simple html notification based on boostrap and bootstrap-notify
## How to use
### Client side
With exports
```lua
rcoreNotif = exports.rcore_notification
rcoreNotif.addNotification('Title','Message','style')
```
With event
```lua
local title,message,style = "title","message","success"
TriggerEvent('rcore_notification:addNotification',title,message,style)
```
### Server side
With exports
```lua
rcoreNotif = exports.rcore_notification
rcoreNotif.addNotification(source,'Title','Message','style')
rcoreNotif.addNotificationForAll('Title','Message','style')
```
With event
```lua
local source = 0
local title,message,style = "title","message","style"
TriggerEvent('rcore_notificaton:addNotification',source,title,message,style)
TriggerEvent('rcore_notificaton:addNotificationForAll',title,message,style)
```
### Sources:
boostrap: https://getbootstrap.com/
animations.css:https://daneden.github.io/animate.css/
boostrap_notify: http://bootstrap-notify.remabledesigns.com/