From 1d25b54e0f4632c470deb884d41a4f2df2030a85 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Fri, 26 Jan 2024 04:16:24 +0100 Subject: [PATCH] tweak: notifiacitons --- client/functions.lua | 6 +----- server/player.lua | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index e76a3b6..db45685 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -78,11 +78,7 @@ function NDCore.revivePlayer(reset, keepDead) end function NDCore.notify(...) - if GetResourceState("ModernHUD") == "started" then - exports["ModernHUD"]:notify(...) - elseif GetResourceState("ox_lib") == "started" then - lib.notify(...) - end + lib.notify(...) end for name, func in pairs(NDCore) do diff --git a/server/player.lua b/server/player.lua index 2281d21..21ed352 100644 --- a/server/player.lua +++ b/server/player.lua @@ -269,11 +269,7 @@ local function createCharacterTable(info) function self.notify(...) if not self.source then return end - if GetResourceState("ModernHUD") == "started" then - TriggerClientEvent("ModernHUD:notify", self.source, ...) - elseif GetResourceState("ox_lib") == "started" then - TriggerClientEvent("ox_lib:notify", self.source, ...) - end + TriggerClientEvent("ox_lib:notify", self.source, ...) return true end