From c185f94b7094c7f8fec9d5ee1a2172dd3f24ec92 Mon Sep 17 00:00:00 2001 From: JaySixty <41970914+Jamie9192@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:02:02 +0000 Subject: [PATCH] Add handler to allow notifications from server --- client.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 7f9631e..58053c9 100644 --- a/client.lua +++ b/client.lua @@ -19,4 +19,6 @@ RegisterCommand('testnotify', function(_, args) SendNotification(message, duration, "warning") end) -exports('SendNotification', SendNotification) \ No newline at end of file +exports('SendNotification', SendNotification) + +RegisterNetEvent('swe-notify:sendNotification', SendNotification) \ No newline at end of file