TEAM_HELIX = DarkRP.createJob("C24 MPF SU HELIX",
{
    color = Color(0, 0, 255, 255),
    model = {"models/DPFilms/Metropolice/Playermodels/pm_civil_medic.mdl"},
    description = [[Юнит ГО подразделения ХЕЛИКС, медик альянса]],
    command = "HELIX",
    max = 2,
    salary = 700,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "SU"
});
local DRP = GM or GAMEMODE;
DRP.CombineDoorsJobWhiteList =
{
    [TEAM_HELIX] = true
};
local EntityData =
{
    ["func_door"] = true,
    ["prop_door_rotating"] = true,
    ["prop_dynamic"] = true
};
hook.Add("KeyPress", "DoorAccess", function(client, key)
    if DRP.CombineDoorsJobWhiteList[client:Team()] then
        if (key == IN_USE) then
            local traceTable = {};
            traceTable.start = client:GetPos();
            traceTable.endpos = (client:GetShootPos() + client:GetAimVector() * 100);
            traceTable.filter = client;
            local trace = util.TraceLine(traceTable);
            if (trace.Entity and trace.Entity:IsValid() and EntityData[trace.Entity:GetClass()]) then
                trace.Entity:Fire("open", "", 0);
            end;
        end;
    end;
end);