- Thread Author
- #1
Redage Clothing Fix v3
So, let's outline the steps to solve the problem
- Find a config
- Find new values
- Insert values
- Enjoy and collect donations
Let's move on to stages
1. To find the config, we need to find the file ClothesComponents.cs
It is located in the following path:
NeptuneEvo/Chars/ClothesComponents.cs
We see the following dictionaries inside it


In fact, we will change these values. In short, this config is responsible for showing us the ID of the last native (gtash) clothing in a specific variation
2. There are 1000 and 1 way to find new values. But the simplest is to raise a naked server and run a script that will automatically write you numbers. You can also beg from someone. I would give my values, but they are not used by me all types of clothes on the server (like bracelets, etc.)
Example script:
JavaScript:
function getOffsets() {
let data = {
male: {},
female: {}
}
// set male model first
mp.players.local.model = mp.game.joaat('mp_m_freemode_01')
mp.game.wait(100)
let i = 0;
for (let key in clothesTypes) {
let type = clothesTypes[key]
if (i < 3) data.male[key] = mp.players.local.getNumberOfPropDrawableVariations(type)
else data.male[key] = mp.players.local.getNumberOfDrawableVariations(type)
i++;
}
// set female model
mp.players.local.model = mp.game.joaat('mp_f_freemode_01')
mp.game.wait(100)
i = 0;
for (let key in clothesTypes) {
let type = clothesTypes[key]
if (i < 3) data.female[key] = mp.players.local.getNumberOfPropDrawableVariations(type)
else data.female[key] = mp.players.local.getNumberOfDrawableVariations(type)
i++;
}
mp.console.logInfo("MALE::", true)
for (let key in data.male) {
mp.console.logInfo(`{ ClothesCategory.ClothesType.${key} , ${data.male[key]},`, true)
}
mp.console.logInfo("FEMALE::", true)
for (let key in data.female) {
mp.console.logInfo(`{ ClothesCategory.ClothesType.${key} , ${data.female[key]},`, true)
}
}
const clothesTypes = {
Hats: 0,
Glasses: 1,
Earrings: 2,
Mask: 1,
Accessories: 7,
Top: 11,
Undershirt: 8,
Pants: 4,
Shoes: 6
}
3. After we have found the values we need, go to the database and look for the ClothesBugs table. In it, insert the values we need.
To make it easier for you, I will send here my current values, which will solve 95% of your problems by fixing your outerwear, etc
C#:
public static Dictionary<Gender.GenderType, Dictionary<ClothesCategory.PartCategory, int>> ItemOffset =
new Dictionary<Gender.GenderType, Dictionary<ClothesCategory.PartCategory, int>>()
{
{
Enums.Gender.GenderType.Male, new Dictionary<ClothesCategory.PartCategory, int>()
{
{ ClothesCategory.PartCategory.Hats, 195 },
{ ClothesCategory.PartCategory.Glasses, 53 },
{ ClothesCategory.PartCategory.Earrings, 42 },
{ ClothesCategory.PartCategory.Mask, 226 },
{ ClothesCategory.PartCategory.Accessories, 175 },
{ ClothesCategory.PartCategory.Top, 495 },
{ ClothesCategory.PartCategory.Undershirt, 199 },
{ ClothesCategory.PartCategory.Pants, 177 },
{ ClothesCategory.PartCategory.Shoes, 135 },
}
},
{
Enums.Gender.GenderType.Female, new Dictionary<ClothesCategory.PartCategory, int>()
{
{ ClothesCategory.PartCategory.Hats, 194 },
{ ClothesCategory.PartCategory.Glasses, 55 },
{ ClothesCategory.PartCategory.Earrings, 23 },
{ ClothesCategory.PartCategory.Mask, 227 },
{ ClothesCategory.PartCategory.Accessories, 145 },
{ ClothesCategory.PartCategory.Top, 534 },
{ ClothesCategory.PartCategory.Undershirt, 245 },
{ ClothesCategory.PartCategory.Pants, 191 },
{ ClothesCategory.PartCategory.Shoes, 142 },
}
}
};