tweak: move clothing menu command to core

This commit is contained in:
Andyyy7666 committed 2024-02-25 23:54:10 +01:00
1 parent 9d4708a1f8
commit 3252118f93
2 files changed
+26

No files matched your search

+19
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)