Advanced Usage
You can replace default framework notifications so all existing scripts automatically use Clear Notify.
ESX integration
Add this to your client.lua or a custom ESX integration file:
RegisterNetEvent('esx:showNotification')
AddEventHandler('esx:showNotification', function(msg)
TriggerEvent('clearNotify', 'info', 'Notification', msg)
end)QBCore integration
Add this to your client.lua or a custom QBCore integration file:
RegisterNetEvent('QBCore:Notify')
AddEventHandler('QBCore:Notify', function(text, type, length)
TriggerEvent('clearNotify', type or 'info', 'Notification', text)
end)