tweak: notifiacitons

This commit is contained in:
Andyyy7666
2024-01-26 04:16:24 +01:00
parent 539e522373
commit 1d25b54e0f
2 changed files with 2 additions and 10 deletions

View File

@@ -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

View File

@@ -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