function ViolLua.Ragebot:CheckValid( Target, Best )
    local Team = Target:Team( )

    if ( self.Config[ 'aimbot_avoid_teammates' ] and Team == self.Client.Team ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_buildmode' ] ) then 
        if ( Target.buildmode ) then 
            return false 
        end

        if ( Target:GetNWBool( 'BuildMode' ) ) then 
            return false 
        end
    end

    if ( self.Config[ 'aimbot_avoid_steam_friends' ] and Target:GetFriendStatus( ) == 'friend' ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_noclip' ] and Target:GetMoveType( ) == MOVETYPE_NOCLIP ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_vehicles' ] and Target:InVehicle( ) ) then 
        return false
    end
    
    if ( self.Config[ 'aimbot_avoid_invisible' ] and Target:GetColor( ).a == 0 ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_bots' ] and Target:IsBot( ) ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_hunters' ] and TEAM_HUNTERS != nil and Team == TEAM_HUNTERS ) then 
        return false
    end
    
    if ( self.Config[ 'aimbot_avoid_props' ] and TEAM_PROPS != nil and Team == TEAM_PROPS ) then 
        return false
    end

    if ( self.Config[ 'aimbot_avoid_deathmatch' ] and Target.InDM and Target:InDM( ) ) then 
        return false
    end

    return true 
end

function ViolLua.Ragebot:Valid( Target, Best )
    if ( Best and Best.Record.Health < Target:Health( ) ) then 
        return false
    end

    if ( self.Client.Local == Target or Target:IsDormant( ) or not Target:Alive( ) or Target:Health( ) <= 0 ) then 
        return false
    end

    if ( Target.HasGodMode and Target:HasGodMode( ) ) then 
        return false
    end

    local Valid = self:CheckValid( Target, Best )

    if ( self.Config[ 'aimbot_avoid_invert' ] ) then 
        Valid = not Valid
    end

    return Valid
end