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.
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/soundsfolder,
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-notification:client:send', src, 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)TriggerClientEvent('qubit-notification:client:send', src, 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)TriggerClientEvent('qubit-notification:client:send', src, 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)
TriggerEvent('qubit-notification:client:send', 'TELEGRAPH', 'WE NEED HELP ON TUMBLEWEED', 'MESSAGE', 6000)TriggerEvent('qubit-notification:client:send', 'ALERT', 'VALENTINE MARKET IS ROBBERING', 'ROBBERY', 6000)TriggerEvent('qubit-notification:client:send', 'INFO', 'SERVER IS RESTARTIN IN 5 MINUTES', 'ANNOUNCEMENT', 6000)