X Studios
TebexDiscord
  • Welcome
  • Knowledge
    • Fivem Escrow System
    • How to Update
  • Script Guides
    • 👕Non Branded Clothing
    • 🔔xs-Notifications (v1)
    • 💉xs-DrugTables
    • 📦xs-OxInventoryReskin
    • 🌷xs-Loading
Powered by GitBook
On this page
  • Simplified Notification - Features
  • Installation Instructions
  • How To & Example Usage

Was this helpful?

PreviousNon Branded ClothingNextxs-DrugTables

Last updated 2 months ago

Was this helpful?



  • Modern and sleek interface

  • Fully Optimized

  • Custom Pop-Up notification sounds

  • Multi-Positions that can be configured to your servers preference

  • Custom Tags to brand your server

  • Completely free and open source resource

  1. Download xs_Notify via keymaster

  2. Extract the resource from the .zip folder

  3. Drag & Drop the file into your resources folder

  4. Add this code to your server.cfg ensure xs-notify



// TriggerEvent("xs:notify", "It works!", "This notify works!", 5000, 0, 3, 'server')

// TriggerClientEvent("xs:notify", -1, "It works!", "This notify works!", 5000, 0, 3, 'server')

// # 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

Simplified Notification - Features

Installation Instructions

How To & Example Usage

Client Side - Example Usage

Server Side - Example Usage

🔔
⚙️
✅
⬇️
⬇️