mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +01:00
feat(client/functions): notification based on resource
This commit is contained in:
@@ -26,6 +26,14 @@ function NDCore.getPlayersFromCoords(distance, coords)
|
|||||||
return closePlayers
|
return closePlayers
|
||||||
end
|
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
|
for name, func in pairs(NDCore) do
|
||||||
if type(func) == "function" then
|
if type(func) == "function" then
|
||||||
exports(name, func)
|
exports(name, func)
|
||||||
|
|||||||
Reference in New Issue
Block a user