Hello, Guest

By registering with us, you'll be able to discuss, share and private message with other members of our community.
What's new

Redage Clothing Fix v3

Alexalsaud

Administrative
Staff member
Admin
Joined
Aug 5, 2024
Messages
337
ICoins
1,501

Redage Clothing Fix v3


So, let's outline the steps to solve the problem
  1. Find a config
  2. Find new values
  3. Insert values
  4. 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

1725033733632.png
1725033756198.png
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 },
}
}
};
 
Back
Top