mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-27 05:24:44 +00:00
fix: saving clothes by character id error
This commit is contained in:
1 parent
a9d42b9861
commit
68563c6d18
1 file changed
+3
-2
+3
-2
@@ -68,7 +68,8 @@ end)
|
|||||||
-- Update the characters clothes.
|
-- Update the characters clothes.
|
||||||
RegisterNetEvent("ND:updateClothes", function(clothing)
|
RegisterNetEvent("ND:updateClothes", function(clothing)
|
||||||
local player = source
|
local player = source
|
||||||
NDCore.Functions.SetPlayerData(player, "clothing", clothing)
|
local character = NDCore.Players[player].id
|
||||||
|
NDCore.Functions.SetPlayerData(character.id, "clothing", clothing)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Disconnecting a player
|
-- Disconnecting a player
|
||||||
@@ -111,4 +112,4 @@ AddEventHandler("onResourceStart", function(resourceName)
|
|||||||
NDCore.PlayersDiscordInfo[tonumber(playerId)] = discordInfo
|
NDCore.PlayersDiscordInfo[tonumber(playerId)] = discordInfo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
Reference in new issue
Block a user