Beispiel #1
0
        /// <summary>
        /// This function is used to set the current clothes on the ped.
        /// </summary>
        public bool AddClothes(ClothesTexture texture, ClothesModel model, ClothesSlot slot)
        {
            string t = texture.ToString();
            string m = model.ToString();

            if (IsClothesSlotTattoo(slot))
            {
                t = ((int)slot).ToString() + t;
                m = ((int)slot).ToString() + m;
            }
            return(MtaShared.AddPedClothes(element, t, m, (int)slot));
        }
Beispiel #2
0
        /// <summary>
        /// Add clothes from only texture and model (does not work on tattoos)
        /// </summary>
        public bool AddClothes(ClothesTexture texture, ClothesModel model)
        {
            Tuple <int, int> result = MtaShared.GetTypeIndexFromClothes(texture.ToString(), model.ToString());

            return(AddClothes((ClothesSlot)result.Item1, result.Item2));
        }