Exemple #1
0
        private void LoadOutfit()
        {
            Ped player = Game.Player.Character;
            int beard  = ini.GetValue <int>("Save", "beard", Outfits.GetBeardComponent(player));
            int hair   = ini.GetValue <int>("Save", "hair", Outfits.GetHairComponent(player));
            int upper  = ini.GetValue <int>("Save", "upper", Outfits.GetUpperComponent(player));
            int lower  = ini.GetValue <int>("Save", "lower", Outfits.GetLowerComponent(player));
            int hands  = ini.GetValue <int>("Save", "hands", Outfits.GetHandsComponent(player));
            int shoes  = ini.GetValue <int>("Save", "shoes", Outfits.GetShoesComponent(player));
            int accone = ini.GetValue <int>("Save", "accone", Outfits.GetAccOneComponent(player));
            int acctwo = ini.GetValue <int>("Save", "acctwo", Outfits.GetAccTwoComponent(player));
            int shirt  = ini.GetValue <int>("Save", "shirt", Outfits.GetShoesComponent(player));

            Outfits.SetBeardComponent(player, beard);
            Outfits.SetHairComponent(player, hair);
            Outfits.SetUpperComponent(player, upper);
            Outfits.SetLowerComponent(player, lower);
            Outfits.SetHandsComponent(player, hands);
            Outfits.SetShoesComponent(player, shoes);
            Outfits.SetAccOneComponent(player, accone);
            Outfits.SetAccTwoComponent(player, acctwo);
            Outfits.SetShirtComponent(player, shirt);

            int beardColor  = ini.GetValue <int>("Save", "beardcolor", Outfits.GetBeardComponentColor(player));
            int hairColor   = ini.GetValue <int>("Save", "haircolor", Outfits.GetHairComponentColor(player));
            int upperColor  = ini.GetValue <int>("Save", "uppercolor", Outfits.GetUpperComponentColor(player));
            int lowerColor  = ini.GetValue <int>("Save", "lowercolor", Outfits.GetLowerComponentColor(player));
            int handsColor  = ini.GetValue <int>("Save", "handscolor", Outfits.GetHandsComponentColor(player));
            int shoesColor  = ini.GetValue <int>("Save", "shoescolor", Outfits.GetShoesComponentColor(player));
            int accOneColor = ini.GetValue <int>("Save", "acconecolor", Outfits.GetAccOneComponentColor(player));
            int accTwoColor = ini.GetValue <int>("Save", "acctwocolor", Outfits.GetAccTwoComponentColor(player));
            int shirtColor  = ini.GetValue <int>("Save", "shirtcolor", Outfits.GetShirtComponentColor(player));

            Outfits.SetBeardComponentColor(player, beardColor);
            Outfits.SetHairComponentColor(player, hairColor);
            Outfits.SetUpperComponentColor(player, upperColor);
            Outfits.SetLowerComponentColor(player, lowerColor);
            Outfits.SetHandsComponentColor(player, handsColor);
            Outfits.SetShoesComponentColor(player, shoesColor);
            Outfits.SetAccOneComponentColor(player, accOneColor);
            Outfits.SetAccTwoComponentColor(player, accTwoColor);
            Outfits.SetShirtComponentColor(player, shirtColor);

            int hat     = ini.GetValue <int>("Save", "hat", Outfits.GetHatProp(player));
            int glasses = ini.GetValue <int>("Save", "glasses", Outfits.GetGlassesProp(player));
            int ears    = ini.GetValue <int>("Save", "ears", Outfits.GetEarProp(player));
            int watch   = ini.GetValue <int>("Save", "watch", Outfits.GetWatchProp(player));

            Outfits.SetHatProp(player, hat);
            Outfits.SetGlassesProp(player, glasses);
            Outfits.SetEarProp(player, ears);
            Outfits.SetWatchProp(player, watch);

            int hatColor     = ini.GetValue <int>("Save", "hatcolor", Outfits.GetHatPropColor(player));
            int glassesColor = ini.GetValue <int>("Save", "glassescolor", Outfits.GetGlassesPropColor(player));
            int earsColor    = ini.GetValue <int>("Save", "earscolor", Outfits.GetEarPropColor(player));
            int watchColor   = ini.GetValue <int>("Save", "watchcolor", Outfits.GetWatchPropColor(player));

            Outfits.SetHatPropColor(player, hatColor);
            Outfits.SetGlassesPropColor(player, glassesColor);
            Outfits.SetEarPropColor(player, earsColor);
            Outfits.SetWatchPropColor(player, watchColor);
        }