Skip to content

Commit

Permalink
fix(client/utils): load nd_core (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyyy7666 authored Mar 1, 2024
1 parent fa414a8 commit b0a2325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/framework/nd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions client/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b0a2325

Please sign in to comment.