🛠️Setup
This is a detailed setup guide for Advanced Notification. If you have any questions before making a purchase, you can contact us on Discord
Last updated
This is a detailed setup guide for Advanced Notification. If you have any questions before making a purchase, you can contact us on Discord
Last updated
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
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
TriggerEvent('cs:notify:panel')
Standard Notification Event
exports['cs_notification']:Notify({
type = 'twitter',
title = 'Twitter', --Put false if you dont want title
description = 'This is Sample Notification',
duration =
TriggerClientEvent('cs:notify', source, {
type = 'twitter',
title = 'Twitter', --Put false if you dont want title
description = 'This is Sample Notification',
duration =
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
For QB: Replace QBCore.Functions.Notify with this ⬇️
function QBCore.Functions.Notify(text, texttype, length)
TriggerEvent('cs:notify', {
type = texttype,
title = false,
description = text,
duration = length
})
end
For ESX: Replace ESX.ShowNotification with this ⬇️
function ESX.ShowNotification(message, type, length)
TriggerEvent('cs:notify', {
type = type,
title = false,
description = message,
duration = length
})
end