tweak: move clothing menu command to core

This commit is contained in:
Andyyy7666
2024-02-25 23:54:10 +01:00
parent 9d4708a1f8
commit 3252118f93
2 changed files with 26 additions and 0 deletions

View File

@@ -154,3 +154,10 @@ RegisterNetEvent("ND:playerEliminated", function(info)
deathInfo = info
})
end)
RegisterNetEvent("ND::updateClothing", function(clothing)
local src = source
local player = NDCore.getPlayer(src)
if not player or not clothing or type(clothing) ~= "table" then return end
player.setMetadata("clothing", clothing)
end)