feat(client/functions): notification based on resource

This commit is contained in:
Andyyy7666
2023-09-18 22:54:05 +02:00
parent 3dd2daad57
commit 82bc4c6d6b

View File

@@ -26,6 +26,14 @@ function NDCore.getPlayersFromCoords(distance, coords)
return closePlayers
end
function NDCore.notify(...)
if GetResourceState("ModernHUD") == "started" then
exports["ModernHUD"]:notify(...)
elseif GetResourceState("ox_lib") == "started" then
lib.notify(...)
end
end
for name, func in pairs(NDCore) do
if type(func) == "function" then
exports(name, func)