curzyy
Designer
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Hidden link for visitors, to see
Log in or register now.
Customize how long the notification will appear.
Customize the colors/icons of the notifications.
Change the title/text & tag of the notification.
Change the position of the notification (Top, Bottom, Left, Right)
View attachment 17937View attachment 17938View attachment 17939View attachment 17940
We will be adding many more features to our Notify script in the future including a color wheel that allow players to customize colors. We will be also adding a feature that allows players to customize the exact location of their notification.
Configuration / Read Me
Configuration / Read Me
JavaScript:
XS Notify Usage Guide
`xs:notify` is an event to display notifications in your FiveM server. Depending on where you trigger it, you can use it client-side or server-side.
## Client-Side Notifications
To trigger a notification on the client-side:
```lua
TriggerEvent("xs:notify", title, content, timeout, type, position, tag)
```
### Client-Side Example:
```lua
TriggerEvent("xs:notify", "It works!", "This notify works!", 5000, 0, 3, 'server')
```
## Server-Side Notifications
To send a notification from the server to all connected clients:
```lua
TriggerClientEvent("xs:notify", -1, title, content, timeout, type, position, tag)
```
### Server-Side Example:
```lua
TriggerClientEvent("xs:notify", -1, "It works!", "This notify works!", 5000, 0, 3, 'server')
```
### Notification Types:
- `0` - Error
- `1` - Success
- `2` - Warning
- `3` - Information
### Position Types:
- `0` - Middle
- `1` - Bottom
- `2` - Left
- `3` - Right
### Tags
- `tags` - You can add any text as your tag