diff --git a/client/framework/nd.lua b/client/framework/nd.lua index 6f04a10..c40d0c3 100644 --- a/client/framework/nd.lua +++ b/client/framework/nd.lua @@ -2,7 +2,7 @@ local NDCore = exports["ND_Core"] local playerGroups = NDCore:getPlayer()?.groups or {} -AddEventHandler("ND:characterLoaded", function(data) +RegisterNetEvent("ND:characterLoaded", function(data) playerGroups = data.groups end) diff --git a/client/utils.lua b/client/utils.lua index 7d84a1e..4cf470b 100644 --- a/client/utils.lua +++ b/client/utils.lua @@ -197,6 +197,8 @@ SetTimeout(0, function() require 'client.framework.esx' elseif utils.hasExport('qb-core.GetCoreObject') then require 'client.framework.qb' + elseif utils.hasExport('ND_Core.getPlayer') then + require 'client.framework.nd' end end)