{
    menuDef
    {
        name                        "playerdataread"
        decoration                  
        rect                        0 0 0 0 0 0
        onOpen
        {
            if (dvarint(xblive_privatematch) || (dvarint(xblive_competitionmatch) && dvarint(com_svDedicated)))
            {
                setLocalVarString ui_customClassLoc "privateMatchCustomClasses";
            }
            else
            {
                setLocalVarString ui_customClassLoc "customClasses";
            }
            setLocalVarInt oldClassIndex (localvarint("classIndex"));
            setLocalVarString oldCustomClassLoc (localvarstring("ui_customClassLoc"));
            setLocalVarString ui_customClassLoc ("customClasses");
            setLocalVarInt classIndex 0;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 1;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 2;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 3;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 4;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 5;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 6;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 7;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            close self;
        }
        onClose
        {
            setLocalVarInt classIndex 8;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 9;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 10;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 11;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 12;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 13;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarInt classIndex 14;
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Primary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 0, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")
            {
                setLocalVarString temp (debugprint("Stats", "Weapon " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (tablelookup("mp/statsTable.csv", 4, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon"), 1) == "iw5")
            {
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Attachment2", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary" + "Camo", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Attachment2 " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "attachment", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo")))
            {
                setLocalVarString temp (debugprint("Stats", "Camo " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "weapon") + " " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "weaponSetups", 1, "camo") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue "none";
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Equipment " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6)) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Secondary offhand " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 6) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 6 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1), 5) != ("perk1")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 1) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2), 5) != ("perk2")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 2) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3)) || (tablelookup("mp/perkTable.csv", 1, getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3), 5) != ("perk3")) || getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_null")
            {
                setLocalVarString temp (debugprint("Stats", "Perk " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) + " locked for class " + localvarint("classIndex") + "; resetting"));
                if (getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "perks", 3) == "specialty_bling")
                {
                    setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none );
                }
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak")))
            {
                setLocalVarString temp (debugprint("Stats", "Deathstreak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "deathstreak") + " locked for class " + localvarint("classIndex") + "; resetting"));
                setLocalVarString dataValue (tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , deathstreak , localVarString ( dataValue ) );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Assault Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "assaultStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , assaultStreaks , 2 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 0) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 0 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 1) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 1 , none );
            }
            if (!isitemunlocked(getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2)))
            {
                setLocalVarString temp (debugprint("Stats", "Support Streak " + getplayerdata(localvarstring("ui_customClassLoc"), localvarint("classIndex"), "defenseStreaks", 2) + " locked for class " + localvarint("classIndex") + "; resetting"));
                setPlayerData ( localVarString ( ui_customClassLoc ) , localVarInt ( classIndex ) , defenseStreaks , 2 , none );
            }
            setLocalVarString ui_customClassLoc (localvarstring("oldCustomClassLoc"));
            setLocalVarInt classIndex (localvarint("oldClassIndex"));
            setLocalVarInt ui_tempVar (getplayerdata("prestige") + 1);
            setPlayerData ( challengeState , ch_prestige , localVarInt ( ui_tempVar ) );
            setLocalVarInt ui_tempVar (getplayerdata("prestige"));
            setPlayerData ( challengeProgress , ch_prestige , localVarInt ( ui_tempVar ) );
            if (getplayerdata("prestige") == 10)
            {
                setPlayerData ( challengeState , ch_prestige_10 , 2 ) setPlayerData ( challengeProgress , ch_prestige_10 , 1 );
            }
        }
    }
}
