From 643ecbd890fc48bd91bfb7f12359913ff7794b91 Mon Sep 17 00:00:00 2001 From: Andy <86536434+Andyyy7666@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:53:02 +0100 Subject: [PATCH 1/2] Update utils.lua --- client/utils.lua | 2 ++ 1 file changed, 2 insertions(+) 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) From 58a073bfdf5f8760c2a358e4e731f3e08f5899eb Mon Sep 17 00:00:00 2001 From: Andy <86536434+Andyyy7666@users.noreply.github.com> Date: Sat, 24 Feb 2024 11:07:42 +0100 Subject: [PATCH 2/2] Update nd.lua --- client/framework/nd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)