Esempio n. 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));
        }
Esempio n. 2
0
        /// <summary>
        /// Add a clothes item from a slot and an index
        /// </summary>
        public bool AddClothes(ClothesSlot slot, int index)
        {
            Tuple <string, string> result = MtaShared.GetClothesByTypeIndex((int)slot, index);

            return(MtaShared.AddPedClothes(element, result.Item1, result.Item2, (int)slot));
        }