This is a detailed setup guide for Advanced Notification. If you have any questions before making a purchase, you can contact us on Discord
Config
Adding Standard Notification Types
- You can add unlimited notification types
- Format:
['type'] = { -- Notification Type title ='Default Title', -- Add Default Title icon ='icon name', -- Add Icon Name iconColor ='#C53030', -- Icon Color}
- You can refer to Fontawesome for icons
- If you don't specify an icon or icon color, the system will automatically fetch it from CodeStudio.DefaultNotification
Open Notification Panel
Client Side Event
TriggerEvent('cs:notify:panel')
Standard Notification Event
Export Method
exports['cs_notification']:Notify({ type ='twitter', title ='Twitter', --Put false if you dont want title description ='This is Sample Notification', duration =3000})
Server Event Method
TriggerClientEvent('cs:notify', source, { type ='twitter', title ='Twitter', --Put false if you dont want title description ='This is Sample Notification', duration =3000})
Client Event Method
TriggerEvent('cs:notify', { type ='twitter', title ='Twitter', --Put false if you dont want title description ='This is Sample Notification', duration =3000})
Custom Notification Event
TriggerEvent('cs:notify', { type ='facebook', title ='Facebook', description ='This is Customised Notification', duration =3000, style = { backColor ='#3a6ecf', textColor ="#fff" }})
Setup Guide Example for QBCore and ESX
For QB: Replace QBCore.Functions.Notify with this ⬇️
functionQBCore.Functions.Notify(text,texttype,length)TriggerEvent('cs:notify', { type = texttype, title =false, description = text, duration = length })end
For ESX: Replace ESX.ShowNotification with this ⬇️
functionESX.ShowNotification(message,type,length)TriggerEvent('cs:notify', { type =type, title =false, description = message, duration = length })end
Notification Panel Settings
- You can enable/disable the notification panel
- Add a command to open the panel, or you can also open it with a key
- You can customize the design mode [Customize = Notification customize section | Position = Notification Position Changer]
Default Notification Settings
- You can set default notification settings, which will apply when you trigger a notification without specifying a notification type, or if that type of notification doesn't exist in CodeStudio.Type