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
+2
-1
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user