|
| 1 | +# RxNotify |
| 2 | + |
| 3 | +A modern, feature-rich notification system for FiveM with confetti effects, 8 position options, and full customization. Built with Vue 3, Tailwind CSS, and designed for optimal performance. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +## [Download](https://github.com/rxscripts/RxNotify/releases/latest/download/RxNotify.zip) |
| 9 | + |
| 10 | +## ✨ Features |
| 11 | +- **4 Notification Types**: Success, Error, Warning, Info with distinct colors and icons |
| 12 | +- **8 Position Options**: Top-left, top-center, top-right, left-center, right-center, bottom-left, bottom-center, bottom-right |
| 13 | +- **Confetti Effects**: Celebratory confetti animations for special moments |
| 14 | +- **Custom Positioning**: Override default position per-notification |
| 15 | +- **Default Titles**: Automatic titles when none provided (configurable) |
| 16 | +- **Modern Design**: Dark slate theme with Kanit font and smooth animations |
| 17 | +- **Position-Aware Animations**: Notifications slide from their screen positions |
| 18 | +- **Progress Bar**: Visual timer that shrinks toward exit direction |
| 19 | +- **Framework Integration**: Optional ESX, QBCore, and QBox integration |
| 20 | +- **Emoji Support**: Full support for emojis in titles and text |
| 21 | +- **Fully Customizable**: All colors, durations, and positions configurable |
| 22 | + |
| 23 | +## ⚠️ Dependencies |
| 24 | +None! RxNotify is standalone and framework-independent. |
| 25 | + |
| 26 | +**Optional**: For framework integration, you can use ESX, QBCore, or QBox (files included in `[INSTALLATION]` folder) |
| 27 | + |
| 28 | +## 🖥️ Installation |
| 29 | +1. Download the latest release of `RxNotify` |
| 30 | +2. Extract the zipped folder into your servers main `resources` directory |
| 31 | +3. Add `ensure RxNotify` in your `server.cfg` file |
| 32 | +4. *(Optional)* For framework integration, see the `[INSTALLATION]` folder README |
| 33 | +5. Restart your server & enjoy! |
| 34 | + |
| 35 | +### Framework Integration (Optional) |
| 36 | +If you want RxNotify to replace your framework's default notifications: |
| 37 | + |
| 38 | +#### ESX |
| 39 | +1. Copy `[INSTALLATION]/ESX/rxnotify.lua` to your `es_extended` folder |
| 40 | +2. Add `client_script 'rxnotify.lua'` at the **bottom** of `es_extended/fxmanifest.lua` |
| 41 | +3. Restart your server |
| 42 | + |
| 43 | +#### QBCore |
| 44 | +1. Copy `[INSTALLATION]/QBCore/rxnotify.lua` to your `qb-core` folder |
| 45 | +2. Add `client_script 'rxnotify.lua'` at the **bottom** of `qb-core/fxmanifest.lua` |
| 46 | +3. Restart your server |
| 47 | + |
| 48 | +#### QBox |
| 49 | +1. Copy `[INSTALLATION]/QBox/rxnotify.lua` to your `qbx_core` folder |
| 50 | +2. Add `client_script 'rxnotify.lua'` at the **bottom** of `qbx_core/fxmanifest.lua` |
| 51 | +3. Restart your server |
| 52 | + |
| 53 | +## 📚 Documentation |
| 54 | +Full documentation available at: [RX Scripts Docs](https://docs.rxscripts.xyz/scripts/free/notify) |
| 55 | + |
| 56 | +### Client Exports |
| 57 | +```lua |
| 58 | +exports['RxNotify']:Notify(title, text, type, length, options) |
| 59 | +``` |
| 60 | + |
| 61 | +**Parameters:** |
| 62 | +- `title` (string): Notification title (nil for default title) |
| 63 | +- `text` (string): Message text |
| 64 | +- `type` (string): 'success', 'error', 'warn', or 'info' (default: 'info') |
| 65 | +- `length` (number): Duration in milliseconds (default: 3000) |
| 66 | +- `options` (table): Optional settings |
| 67 | + - `confetti` (boolean): Trigger confetti effect |
| 68 | + - `position` (string): Override default position ('tl', 'tc', 'tr', 'lc', 'rc', 'bl', 'bc', 'br') |
| 69 | + |
| 70 | +**Examples:** |
| 71 | +```lua |
| 72 | +-- Basic notification |
| 73 | +exports['RxNotify']:Notify("Success", "Action completed!", "success") |
| 74 | + |
| 75 | +-- With confetti |
| 76 | +exports['RxNotify']:Notify("Achievement!", "You did it!", "success", 5000, { confetti = true }) |
| 77 | + |
| 78 | +-- Custom position |
| 79 | +exports['RxNotify']:Notify("Alert", "Check here!", "info", 4000, { position = 'tr' }) |
| 80 | + |
| 81 | +-- Confetti + position |
| 82 | +exports['RxNotify']:Notify("Party!", "Celebration!", "success", 6000, { |
| 83 | + confetti = true, |
| 84 | + position = 'tc' |
| 85 | +}) |
| 86 | +``` |
| 87 | + |
| 88 | +### Server Events |
| 89 | +```lua |
| 90 | +TriggerClientEvent('RxNotify:Notify', source, title, text, type, length, options) |
| 91 | +``` |
| 92 | + |
| 93 | +## 🎨 Configuration |
| 94 | +All settings are in `config.lua`: |
| 95 | +- Default position (8 options) |
| 96 | +- Default duration |
| 97 | +- Default titles per type |
| 98 | +- Full color customization (background, text, accent colors) |
| 99 | + |
| 100 | +## ℹ️ Support |
| 101 | +If you have any suggestions for new features, discovered a bug or having a problem with the script, feel free to contact us at anytime via: |
| 102 | +* [Discord](https://discord.gg/rxscripts) |
| 103 | + |
| 104 | +## ⭐ Take a look at our other products! |
| 105 | +### General |
| 106 | +* [Advanced Housing](https://store.rxscripts.xyz/scripts/advanced-housing?utm_source=github&utm_medium=free-script) |
| 107 | +* [Advanced Banking](https://store.rxscripts.xyz/scripts/advanced-banking?utm_source=github&utm_medium=free-script) |
| 108 | +* [Advanced Garages](https://store.rxscripts.xyz/scripts/advanced-garages?utm_source=github&utm_medium=free-script) |
| 109 | +* [Advanced Reports](https://store.rxscripts.xyz/scripts/advanced-reports?utm_source=github&utm_medium=free-script) |
| 110 | +* [Black Markets](https://store.rxscripts.xyz/scripts/black-markets?utm_source=github&utm_medium=free-script) |
| 111 | +* [Loading Screen](https://store.rxscripts.xyz/scripts/loading-screen?utm_source=github&utm_medium=free-script) |
| 112 | +* [Gang Wars](https://store.rxscripts.xyz/scripts/gang-wars?utm_source=github&utm_medium=free-script) |
| 113 | +### Activities |
| 114 | +* [Advanced Hunting](https://store.rxscripts.xyz/scripts/advanced-hunting?utm_source=github&utm_medium=free-script) |
| 115 | +* [Advanced Mining](https://store.rxscripts.xyz/scripts/advanced-mining?utm_source=github&utm_medium=free-script) |
| 116 | +* [Advanced Fishing](https://store.rxscripts.xyz/scripts/advanced-fishing?utm_source=github&utm_medium=free-script) |
| 117 | +* [Advanced Drug Labs](https://store.rxscripts.xyz/scripts/advanced-drug-labs?utm_source=github&utm_medium=free-script) |
| 118 | +* [Advanced Plantation](https://store.rxscripts.xyz/scripts/advanced-plantation?utm_source=github&utm_medium=free-script) |
| 119 | +* [Advanced Player Stores](https://store.rxscripts.xyz/scripts/advanced-player-stores?utm_source=github&utm_medium=free-script) |
| 120 | +### Survival |
| 121 | +* [Recyclers](https://store.rxscripts.xyz/scripts/recyclers?utm_source=github&utm_medium=free-script) |
| 122 | +* [Smelters](https://store.rxscripts.xyz/scripts/smelters?utm_source=github&utm_medium=free-script) |
| 123 | +* [Crates & Storages](https://store.rxscripts.xyz/scripts/crates-storages?utm_source=github&utm_medium=free-script) |
| 124 | +* [Death System](https://store.rxscripts.xyz/scripts/death-system?utm_source=github&utm_medium=free-script) |
| 125 | +* [Hazard Zones](https://store.rxscripts.xyz/scripts/hazard-zones?utm_source=github&utm_medium=free-script) |
| 126 | +* [Chopshop](https://store.rxscripts.xyz/scripts/chopshop?utm_source=github&utm_medium=free-script) |
| 127 | + |
| 128 | +## Previews |
| 129 | + |
0 commit comments