From bde203f8ffd349d1c102b28ad24407dc6a7ce057 Mon Sep 17 00:00:00 2001 From: KadDarem Date: Wed, 10 Apr 2024 14:47:49 +0200 Subject: [PATCH] Update clothing-store.md --- docs/RedM/clothing-store.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/RedM/clothing-store.md b/docs/RedM/clothing-store.md index d8e7868..c198ab6 100644 --- a/docs/RedM/clothing-store.md +++ b/docs/RedM/clothing-store.md @@ -425,6 +425,36 @@ end) ## 5. Compatibility issues +### Fix clothes selected during the character creation +Go in `rsg-apperance\client\functions.lua line 531 and add edit these line : +```lua:line-numbers=530 +TriggerServerEvent("rsg-appearance:SetPlayerBucket" , 0) +TriggerServerEvent("rsg-appearance:SaveSkin", CreatorCache, ClothesCache) // [!code --] +local newClothesData = {} // [!code ++] +for k, v in pairs(ClothesCache) do // [!code ++] + local id = tonumber(v.model) // [!code ++] + if id >= 1 then // [!code ++] + if IsPedMale(PlayerPedId()) then // [!code ++] + if clothing["male"][k] ~= nil then // [!code ++] + if clothing["male"][k][id] ~= nil then // [!code ++] + if clothing["male"][k][id][tonumber(v.texture)] ~= nil then // [!code ++] + newClothesData[k] = {hash = tonumber(clothing["male"][k][id[tonumber(v.texture)].hash)} // [!code ++] + end // [!code ++] + end // [!code ++] + end // [!code ++] + else // [!code ++] + if clothing["female"][k] ~= nil then // [!code ++] + if clothing["female"][k][id] ~= nil then // [!code ++] + if clothing["female"][k][id][tonumber(v.texture)] ~= nil then // [!code ++] + newClothesData[k] = {hash = tonumber(clothing["male"][k][id][tonumber(v.texture)].hash)} // [!code ++] + end // [!code ++] + end // [!code ++] + end // [!code ++] + end // [!code ++] + end // [!code ++] +end // [!code ++] +TriggerServerEvent("rsg-appearance:SaveSkin", CreatorCache, newClothesData) // [!code ++] +``` ### Fix rsg-bathing Go in `rsg-bathing\fxmanifest.lua` line 24 and remove the `rsg-wardrobe` dependency ```lua:line-numbers=21