Qubit Studios
StoreSupport
  • Hello
  • Support
  • FIVEM SCRIPTS
    • ⚒️Car Crafting
      • Installation & Configuration
    • 🖲️3D Printer
      • Installation & Configuration
    • 💎Honor System
      • Installation & Configuration
      • Usage & Integration
  • REDM SCRIPTS
    • 🚨Native Alert
      • Installation & Configuration
Powered by GitBook
On this page
  • 1. Framework Configration
  • 2. Edit xSound fxmanifest.lua
  • 3. Add Sound files to xSound
  • Setup Finished 🎉

Was this helpful?

  1. REDM SCRIPTS
  2. Native Alert

Installation & Configuration

PreviousNative Alert

Last updated 2 months ago

Was this helpful?

First, you need to install the scripts required for Qubit Notification to work. After installing these scripts, you can put qubit-notification into your resources folder and run it.

  • xsound -

1. Framework Configration

This script is completely standalone; you can use it with all frameworks. You don't need to make any extra adjustments.

2. Edit xSound fxmanifest.lua

Qubit Notification has separate sound effects for each different notification type. We need to load these sound effects into xSound, so we need to update the fxmanifest.lua as follows.

3. Add Sound files to xSound

You need download and add sound fx file to xsound/html/sounds folder,

Setup Finished 🎉

Our setup is complete, and now Qubit Notification is fully ready to use. Below, you can find a few example codes that you can run on both the client and server side.

Server-Side Usage Examples

TriggerClientEvent('qubit-alert:client:send', src, 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)
TriggerClientEvent('qubit-alert:client:send', src, 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)
TriggerClientEvent('qubit-alert:client:send', src, 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)
TriggerClientEvent("qubit-alert:client:send", src, type, message, title, timeout)

Client-Side Usage Examples

TriggerEvent('qubit-alert:client:send', 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)
TriggerEvent('qubit-alert:client:send', 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)
TriggerEvent('qubit-alert:client:send', 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)
TriggerEvent('qubit-alert:client:send', type, type, message, title, timeout)
🚨
Download here
80KB
telegraph.ogg
62KB
alert.ogg
111KB
info.ogg