diff --git a/server-data/resources/[esx]/mythic_notify/client/main.lua b/server-data/resources/[esx]/mythic_notify/client/main.lua index 210fdbde0..11cf22e32 100644 --- a/server-data/resources/[esx]/mythic_notify/client/main.lua +++ b/server-data/resources/[esx]/mythic_notify/client/main.lua @@ -1,15 +1,12 @@ -RegisterNetEvent("mythic_notify:client:SendAlert") -AddEventHandler("mythic_notify:client:SendAlert", function(data) +RegisterNetEvent("mythic_notify:client:SendAlert", function(data) SendAlert(data.type, data.text, data.length, data.style) end) -RegisterNetEvent("mythic_notify:client:SendUniqueAlert") -AddEventHandler("mythic_notify:client:SendUniqueAlert", function(data) +RegisterNetEvent("mythic_notify:client:SendUniqueAlert", function(data) SendUniqueAlert(data.id, data.type, data.text, data.length, data.style) end) -RegisterNetEvent("mythic_notify:client:PersistentAlert") -AddEventHandler("mythic_notify:client:PersistentAlert", function(data) +RegisterNetEvent("mythic_notify:client:PersistentAlert", function(data) PersistentAlert(data.action, data.id, data.type, data.text, data.style) end)