Боди - группы нескольких скинов

Проблема: Мне нужно чтобы в зависимости от звания у игроков были разные боди-группы, но получается так что все значения (хоть они и разные) связываются между собой и получается так что у всех званий одинаковые боди-группы

TEAM_MLSERJANTCOMPONPSP = DarkRP.createJob("Младший-Сержант КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = [[]],
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "rw_sw_smartlauncher", "rw_sw_bino_dark"},
    command = "mlserjantcomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Младший Сержант КОМПОНП SP",
    PlayerLoadout = function(ply)
        
        ply:SetBodygroup(0, 0)
        ply:SetBodygroup(1, 0)
        ply:SetBodygroup(2, 0)
        ply:SetBodygroup(3, 0)
        ply:SetBodygroup(4, 0)
        ply:SetBodygroup(5, 0)
        ply:SetBodygroup(6, 0)

        local model = ply:GetModel()

        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(5, 3) 
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(6, 3) 
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(3, 3) 
        end
    end
})

TEAM_KOMANDIRCOMPONPSP = DarkRP.createJob("Командир КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = [[]],
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "zeus_smokegranade", "rw_sw_nade_dioxis", "zeus_flashbang", "zeus_thermaldet", "rw_sw_scattershotgun", "rw_sw_smartlauncher", "rw_sw_huntershotgun", "rw_sw_bino_dark"},
    command = "komandircomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Командир КОМПОНП SP",
    PlayerLoadout = function(ply)
        
        ply:SetBodygroup(0, 0)
        ply:SetBodygroup(1, 0)
        ply:SetBodygroup(2, 0)
        ply:SetBodygroup(3, 0)
        ply:SetBodygroup(4, 0)
        ply:SetBodygroup(5, 0)
        ply:SetBodygroup(6, 0)

        local model = ply:GetModel()

        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(5, 5)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(6, 5) 
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(3, 5)
        end
    end
})

типо так?

TEAM_MLSERJANTCOMPONPSP = DarkRP.createJob("Младший-Сержант КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = "",
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "rw_sw_smartlauncher", "rw_sw_bino_dark"},
    command = "mlserjantcomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Младший Сержант КОМПОНП SP",
    PlayerLoadout = function(ply)
        local model = ply:GetModel()

        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 0)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 3)
            ply:SetBodygroup(6, 0)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 0)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 0)
            ply:SetBodygroup(6, 3)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 3)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 0)
            ply:SetBodygroup(6, 0)
        end
    end
})

TEAM_KOMANDIRCOMPONPSP = DarkRP.createJob("Командир КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = "",
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "zeus_smokegranade", "rw_sw_nade_dioxis", "zeus_flashbang", "zeus_thermaldet", "rw_sw_scattershotgun", "rw_sw_smartlauncher", "rw_sw_huntershotgun", "rw_sw_bino_dark"},
    command = "komandircomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Командир КОМПОНП SP",
    PlayerLoadout = function(ply)
        local model = ply:GetModel()

        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 0)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 5)
            ply:SetBodygroup(6, 0)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 0)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 0)
            ply:SetBodygroup(6, 5)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(0, 0)
            ply:SetBodygroup(1, 0)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 5)
            ply:SetBodygroup(4, 0)
            ply:SetBodygroup(5, 0)
            ply:SetBodygroup(6, 0)
        end
    end
})

всё равно не работает, я поставил что у младшего сержанта
if model == “models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl” then
ply:SetBodygroup(5,3)
elseif model == “models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl” then
ply:SetBodygroup(6, 3)
elseif model == “models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl” then
ply:SetBodygroup(3, 3)
end
end
а у командира
if model == “models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl” then
ply:SetBodygroup(5, 5)
elseif model == “models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl” then
ply:SetBodygroup(6, 5)
elseif model == “models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl” then
ply:SetBodygroup(3, 5)
end
end
и всё равно у них почему-то одинаковые боди группы хотя значения разные

TEAM_MLSERJANTCOMPONPSP = DarkRP.createJob("Младший-Сержант КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = "",
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "rw_sw_smartlauncher", "rw_sw_bino_dark"},
    command = "mlserjantcomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Младший Сержант КОМПОНП SP",
    PlayerLoadout = function(ply)
        ply:SetBodygroup(0, 0)
        ply:SetBodygroup(1, 0)
        ply:SetBodygroup(2, 0)
        ply:SetBodygroup(3, 0)
        ply:SetBodygroup(4, 0)
        ply:SetBodygroup(5, 0)
        ply:SetBodygroup(6, 0)
    end
})

TEAM_KOMANDIRCOMPONPSP = DarkRP.createJob("Командир КОМПОНП", {
    color = Color(250, 70, 5),
    model = {
        "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl",
        "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl",
    },
    description = "",
    weapons = {"rw_sw_tl50", "rw_sw_dlt20a", "weapon_armorkit", "weapon_defibrilator", "weapon_bactanade", "zeus_smokegranade", "rw_sw_nade_dioxis", "zeus_flashbang", "zeus_thermaldet", "rw_sw_scattershotgun", "rw_sw_smartlauncher", "rw_sw_huntershotgun", "rw_sw_bino_dark"},
    command = "komandircomponpsp",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Командир КОМПОНП SP",
    PlayerLoadout = function(ply)
        ply:SetBodygroup(0, 0)
        ply:SetBodygroup(1, 0)
        ply:SetBodygroup(2, 0)
        ply:SetBodygroup(3, 0)
        ply:SetBodygroup(4, 0)
        ply:SetBodygroup(5, 0)
        ply:SetBodygroup(6, 0)
    end
})

hook.Add("PlayerSpawn", "SetBodyGroupsOnSpawn", function(ply)
    local job = ply:Team()
    local model = ply:GetModel()

    if job == TEAM_MLSERJANTCOMPONPSP then
        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(5, 3)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(6, 3)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(3, 3)
        end
    elseif job == TEAM_KOMANDIRCOMPONPSP then
        if model == "models/kriegsyntax/imperial/compnor/commando/playermodel_male_01.mdl" then
            ply:SetBodygroup(5, 5)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_sarc/playermodel_male_01.mdl" then
            ply:SetBodygroup(6, 5)
        elseif model == "models/kriegsyntax/imperial/compnor/commando_storm/playermodel_male_01.mdl" then
            ply:SetBodygroup(3, 5)
        end
    end
end)