Skip to content

Commit

Permalink
Update clothing-store.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KadDarem committed Apr 10, 2024
1 parent 4228251 commit bde203f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/RedM/clothing-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,36 @@ end)

## 5. Compatibility issues

### <Badge type="rsg" text="RSG" /> 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 ++]
```
### <Badge type="rsg" text="RSG" /> Fix rsg-bathing
Go in `rsg-bathing\fxmanifest.lua` line 24 and remove the `rsg-wardrobe` dependency
```lua:line-numbers=21
Expand Down

0 comments on commit bde203f

Please sign in to comment.