--███╗ ██╗ ██████╗ ████████╗██╗███████╗██╗ ██████╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗███████╗ --████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██║██╔════╝██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║██╔════╝ --██╔██╗ ██║██║ ██║ ██║ ██║█████╗ ██║██║ ███████║ ██║ ██║██║ ██║██╔██╗ ██║███████╗ --██║╚██╗██║██║ ██║ ██║ ██║██╔══╝ ██║██║ ██╔══██║ ██║ ██║██║ ██║██║╚██╗██║╚════██║ --██║ ╚████║╚██████╔╝ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║███████║ --╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ function Notification(source, notif_type, message) if source and notif_type and message then if Config.NotificationType.client == 'esx' then TriggerClientEvent('esx:showNotification', source, message) elseif Config.NotificationType.client == 'qbcore' then if notif_type == 1 then TriggerClientEvent('QBCore:Notify', source, message, 'success') elseif notif_type == 2 then TriggerClientEvent('QBCore:Notify', source, message, 'primary') elseif notif_type == 3 then TriggerClientEvent('QBCore:Notify', source, message, 'error') end elseif Config.NotificationType.client == 'mythic_old' then if notif_type == 1 then TriggerClientEvent('mythic_notify:client:SendAlert:custom', source, { type = 'success', text = message, length = 10000}) elseif notif_type == 2 then TriggerClientEvent('mythic_notify:client:SendAlert:custom', source, { type = 'inform', text = message, length = 10000}) elseif notif_type == 3 then TriggerClientEvent('mythic_notify:client:SendAlert:custom', source, { type = 'error', text = message, length = 10000}) end elseif Config.NotificationType.client == 'mythic_new' then if notif_type == 1 then TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'success', text = message, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } }) elseif notif_type == 2 then TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'inform', text = message, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } }) elseif notif_type == 3 then TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'error', text = message, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } }) end elseif Config.NotificationType.client == 'chat' then TriggerClientEvent('chatMessage', source, message) elseif Config.NotificationType.client == 'other' then --add your own notification. end end end