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

@@ -50,3 +50,22 @@ RegisterNetEvent("ND:revivePlayer", function()
end)
RegisterNetEvent("ND:characterUnloaded")
RegisterNetEvent("ND:clothingMenu", function()
if GetResourceState("fivem-appearance") ~= "started" then return end
local function customize(appearance)
if not appearance then return end
TriggerServerEvent("ND:updateClothing", appearance)
end
exports["fivem-appearance"]:startPlayerCustomization(customize, {
ped = false,
headBlend = true,
faceFeatures = true,
headOverlays = true,
components = true,
props = true,
tattoos = true
})
end)