diff --git a/server/events.lua b/server/events.lua index 4b246ab..5f180a6 100644 --- a/server/events.lua +++ b/server/events.lua @@ -68,7 +68,8 @@ end) -- Update the characters clothes. RegisterNetEvent("ND:updateClothes", function(clothing) local player = source - NDCore.Functions.SetPlayerData(player, "clothing", clothing) + local character = NDCore.Players[player].id + NDCore.Functions.SetPlayerData(character.id, "clothing", clothing) end) -- Disconnecting a player @@ -111,4 +112,4 @@ AddEventHandler("onResourceStart", function(resourceName) NDCore.PlayersDiscordInfo[tonumber(playerId)] = discordInfo end end -end) \ No newline at end of file +end)