mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
fix: saving clothes by character id error
This commit is contained in:
@@ -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