Skip to content

Commit

Permalink
fix(client/nd): properly update groups (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyyy7666 committed Mar 21, 2024
1 parent e3a6b90 commit 2e4e38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/bridge/nd/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ end
SetTimeout(500, function()
local player = NDCore.getPlayer()
if not player then return end
OnPlayerData("groups", reorderGroups(player.groups))
client.setPlayerData("groups", reorderGroups(player.groups))
end)

RegisterNetEvent("ND:characterLoaded", function(character)
OnPlayerData("groups", reorderGroups(character.groups))
client.setPlayerData("groups", reorderGroups(character.groups))
end)

RegisterNetEvent("ND:updateCharacter", function(character)
OnPlayerData("groups", reorderGroups(character.groups))
client.setPlayerData("groups", reorderGroups(character.groups))
end)

---@diagnostic disable-next-line: duplicate-set-field
Expand Down

0 comments on commit 2e4e38f

Please sign in to comment.