update: notification reosurces

This commit is contained in:
Andyyy7666
2023-08-23 03:30:15 +02:00
parent 858e5e98a2
commit 0baadda7b0

View File

@@ -216,7 +216,11 @@ local function createCharacterTable(info)
function self.notify(...) function self.notify(...)
if not self.source then return end if not self.source then return end
TriggerClientEvent("ox_lib:notify", self.source, ...) if GetResourceState("ModernHUD") == "started" then
TriggerClientEvent("ModernHUD:notify", self.source, ...)
elseif GetResourceState("ox_lib") == "started" then
TriggerClientEvent("ox_lib:notify", self.source, ...)
end
return true return true
end end