Exemple #1
0
        public static void GarderobFire(int idx)
        {
            switch (idx)
            {
            case 0:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                ClearPedProp(GetPlayerPed(-1), 0);

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);
                break;

            case 1:
                if (User.Skin.SEX == 0)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 93, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 0, 240, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 231, 0, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 126, 0, true);
                }
                break;

            case 2:
                if (User.Skin.SEX == 0)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 38, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 97, 17, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 0, 240, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 251, 17, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 126, 0, true);
                }
                break;
            }
        }
Exemple #2
0
        public static void Dequip()
        {
            if (Sync.Data.HasLocally(User.GetServerId(), "GrSix:Uniform") &&
                Sync.Data.HasLocally(User.GetServerId(), "GrSix:Equip"))
            {
                if (GetAmmoInPedWeapon(GetPlayerPed(-1), (uint)WeaponHash.SMG) >= 140 && GetAmmoInPedWeapon(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2) >= 60)
                {
                    Notification.SendWithTime("~g~Вы сдали оружие и форму");
                    RemoveWeaponFromPed(GetPlayerPed(-1), (uint)WeaponHash.SMG);
                    SetPedAmmo(GetPlayerPed(-1), (uint)WeaponHash.SMG, 0);
                    RemoveWeaponFromPed(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2);
                    SetPedAmmo(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2, 0);
                    Sync.Data.SetLocally(User.GetServerId(), "GrSix:Equip", false);

                    Sync.Data.ResetLocally(User.GetServerId(), "hasMask");
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                    Characher.UpdateCloth(false);
                    Characher.UpdateFace(false);
                    Sync.Data.ResetLocally(User.GetServerId(), "GrSix:Uniform");
                    Sync.Data.ResetLocally(User.GetServerId(), "GrSix:Equip");

                    User.AddMoney(3500);
                    Notification.SendWithTime("~r~Вам вернули полностью залог 3500$");
                }

                else if (GetAmmoInPedWeapon(GetPlayerPed(-1), (uint)WeaponHash.SMG) < 140 || GetAmmoInPedWeapon(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2) < 60)
                {
                    Notification.SendWithTime("~g~Вы сдали оружие и форму");
                    RemoveWeaponFromPed(GetPlayerPed(-1), (uint)WeaponHash.SMG);
                    SetPedAmmo(GetPlayerPed(-1), (uint)WeaponHash.SMG, 0);
                    RemoveWeaponFromPed(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2);
                    SetPedAmmo(GetPlayerPed(-1), (uint)WeaponHash.PistolMk2, 0);
                    Sync.Data.SetLocally(User.GetServerId(), "GrSix:Equip", false);

                    Sync.Data.ResetLocally(User.GetServerId(), "hasMask");
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                    Characher.UpdateCloth(false);
                    Characher.UpdateFace(false);
                    Sync.Data.ResetLocally(User.GetServerId(), "GrSix:Uniform");
                    Sync.Data.ResetLocally(User.GetServerId(), "GrSix:Equip");

                    User.AddMoney(2900);
                    Notification.SendWithTime("~r~недочёт патронов придется компенсировать");
                    Notification.SendWithTime("~r~Вам вернули часть залога 2900$");
                }
            }
            else
            {
                Notification.SendWithTime("~r~На вас нет формы. Что вы собрались сдавать?");
            }
        }
Exemple #3
0
        public static void Garderob(int idx)
        {
            switch (idx)
            {
            case 0:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                ClearPedProp(GetPlayerPed(-1), 0);

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);
                break;

            case 1:
                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 109, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 99, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 72, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 97, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 159, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 66, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 258, 0, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 85, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 96, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 51, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 127, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 129, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 250, 0, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                }
                break;

            case 2:
                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 109, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 99, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 72, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 97, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 159, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 66, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 258, 1, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 85, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 96, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 51, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 127, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 129, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 250, 1, 2);
                    ClearPedProp(GetPlayerPed(-1), 0);
                }
                break;
            }
        }
Exemple #4
0
        public static void Garderob(int idx)
        {
            switch (idx)
            {
            case 0:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);
                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                ClearPedProp(GetPlayerPed(-1), 0);
                break;

            case 1:    //51

                SetPedHeadBlendData(
                    GetPlayerPed(-1),
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    false
                    );

                Sync.Data.SetLocally(User.GetServerId(), "hasMask", true);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 32, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 3, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 44, 3, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 116, 0, true);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 33, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 4, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 139, 3, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 117, 0, true);
                }
                break;

            case 2:    //51

                SetPedHeadBlendData(
                    GetPlayerPed(-1),
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    false
                    );

                Sync.Data.SetLocally(User.GetServerId(), "hasMask", true);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 90, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 17, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 218, 4, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 116, 0, true);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 87, 4, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 15, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 220, 4, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 117, 0, true);
                }
                break;
            }
        }
Exemple #5
0
        public static void Garderob(int idx)
        {
            switch (idx)
            {
            case 0:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                ClearPedProp(GetPlayerPed(-1), 0);

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);
                break;

            case 1:
                ClearPedProp(GetPlayerPed(-1), 0);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 34, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 0, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 54, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 38, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 13, 3, 2);
                }
                break;

            case 2:
                ClearPedProp(GetPlayerPed(-1), 0);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 14, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 34, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 48, 0, 2);

                    if (User.Data.rank == 3)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 7, 1, 2);
                    }
                    else if (User.Data.rank == 4)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 7, 2, 2);
                    }
                    else if (User.Data.rank > 4)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 7, 3, 2);
                    }
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 54, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 55, 0, 2);

                    if (User.Data.rank == 3)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 8, 1, 2);
                    }
                    else if (User.Data.rank == 4)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 8, 2, 2);
                    }
                    else if (User.Data.rank > 4)
                    {
                        SetPedComponentVariation(GetPlayerPed(-1), 10, 8, 3, 2);
                    }
                }

                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                break;

            case 3:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                Characher.UpdateFace(false);
                SetPedPropIndex(GetPlayerPed(-1), 0, 19, 0, true);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 19, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 38, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 57, 9, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 59, 2, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 4, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 9, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 48, 0, 2);
                }
                break;

            case 4:
                SetPedHeadBlendData(
                    GetPlayerPed(-1),
                    0,
                    0,
                    0,
                    User.Skin.GTAO_SKIN_THRID_ID,
                    User.Skin.GTAO_SKIN_SECOND_ID,
                    User.Skin.GTAO_SKIN_FIRST_ID,
                    0,
                    User.Skin.GTAO_SKIN_MIX,
                    0,
                    false
                    );

                Sync.Data.SetLocally(User.GetServerId(), "hasMask", true);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 56, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 32, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 12, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 43, 0, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 116, 0, true);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 33, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 4, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 139, 3, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 117, 0, true);
                }
                break;

            case 5:

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 30, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 152, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 12, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 103, 4, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 58, 2, true);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 31, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 25, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 122, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 4, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 111, 4, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 58, 2, true);
                }
                break;

            case 6:
                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 121, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 9, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 6, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 29, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 160, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 0, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 120, 0, true);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 121, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 10, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 40, 9, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 130, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 95, 0, 2);

                    SetPedPropIndex(GetPlayerPed(-1), 0, 121, 0, true);
                }
                break;

            case 7:
                ClearPedProp(GetPlayerPed(-1), 0);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 34, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 86, 0, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 48, 4, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 54, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 38, 7, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 26, 4, 2);
                }
                break;
            }
        }
Exemple #6
0
        public static void GarderobSheriff(int idx)
        {
            switch (idx)
            {
            case 0:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                ClearPedProp(GetPlayerPed(-1), 0);

                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);
                break;

            case 1:
                ClearPedProp(GetPlayerPed(-1), 0);
                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 27, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 64, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 55, 0, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 13, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 10, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 23, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 54, 0, 2);
                }
                break;

            case 2:
                ClearPedProp(GetPlayerPed(-1), 0);
                Characher.UpdateCloth(false);
                Characher.UpdateFace(false);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 64, 1, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 55, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 159, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 250, 3, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 11, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 25, 6, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 54, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 38, 7, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 58, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 26, 4, 2);
                }
                break;

            case 3:
                /*API.ClearPlayerAccessory(sender, 0);
                 * User.ResetPlayerPed(sender);
                 * User.ResetPlayerCloth(sender);*/

                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                Characher.UpdateFace(false);
                SetPedPropIndex(GetPlayerPed(-1), 0, 19, 0, true);

                if (User.Skin.SEX == 1)
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 19, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 38, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 57, 9, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 35, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 59, 2, 2);
                }
                else
                {
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 1, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 4, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 9, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 5, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 7, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 57, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 10, 0, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 48, 0, 2);
                }
                break;

            case 4:
                Sync.Data.ResetLocally(User.GetServerId(), "hasMask");

                Characher.UpdateFace(false);
                SetPedPropIndex(GetPlayerPed(-1), 0, 19, 0, true);

                if (User.Skin.SEX == 1)
                {
                    SetPedPropIndex(GetPlayerPed(-1), 0, 116, 1, true);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 0, 21, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 160, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 18, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 46, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 13, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 61, 7, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2);
                }
                else
                {
                    SetPedPropIndex(GetPlayerPed(-1), 0, 117, 1, true);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 52, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 8, 130, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 3, 17, 0, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 11, 53, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 9, 12, 2, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 4, 59, 7, 2);
                    SetPedComponentVariation(GetPlayerPed(-1), 6, 24, 0, 2);
                }
                break;
            }
        }